From 790895782d9edea6a1b4cfdb92c9e20dbbc7608d Mon Sep 17 00:00:00 2001 From: penguindark <57967770+penguindark@users.noreply.github.com> Date: Fri, 12 Jul 2024 16:27:48 +0200 Subject: [PATCH] examples.sokol: add sampler to the 02_cube code (fix #21547) (#21853) --- examples/sokol/02_cubes_glsl/cube_glsl.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/sokol/02_cubes_glsl/cube_glsl.v b/examples/sokol/02_cubes_glsl/cube_glsl.v index f174ea6beaf621..09bcf8fda3bd31 100644 --- a/examples/sokol/02_cubes_glsl/cube_glsl.v +++ b/examples/sokol/02_cubes_glsl/cube_glsl.v @@ -365,6 +365,7 @@ fn init_cube_glsl(mut app App) { app.cube_bind.vertex_buffers[0] = vbuf app.cube_bind.index_buffer = ibuf app.cube_bind.fs.images[C.SLOT_tex] = app.texture + app.cube_bind.fs.samplers[C.SLOT_smp] = app.sampler app.cube_pip_glsl = gfx.make_pipeline(&pipdesc) println('GLSL init DONE!') } @@ -484,8 +485,6 @@ fn frame(mut app App) { y0 := 0 y1 := int(f32(dh) * 0.5) - // app.gg.begin() - app.gg.begin() { sgl.defaults()