Skip to content

Commit

Permalink
examples.sokol: add sampler to the 02_cube code (fix #21547) (#21853)
Browse files Browse the repository at this point in the history
  • Loading branch information
penguindark committed Jul 12, 2024
1 parent fbdc992 commit 7908957
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/sokol/02_cubes_glsl/cube_glsl.v
Original file line number Diff line number Diff line change
Expand Up @@ -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!')
}
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 7908957

Please sign in to comment.