Skip to content

Commit ed84fb9

Browse files
committed
examples: cleanup unsafe{} blocks that are not needed anymore in examples/sokol/08_sdf/sdf.v
1 parent 47f8f34 commit ed84fb9

File tree

1 file changed

+2
-2
lines changed
  • examples/sokol/08_sdf

1 file changed

+2
-2
lines changed

examples/sokol/08_sdf/sdf.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn init(mut state State) {
2929
fsq_verts := [f32(-1.0), -3.0, 3.0, 1.0, -1.0, 1.0]!
3030
state.bind.vertex_buffers[0] = gfx.make_buffer(gfx.BufferDesc{
3131
label: c'fsq vertices'
32-
data: unsafe { gfx.Range{&fsq_verts[0], sizeof(fsq_verts)} }
32+
data: gfx.Range{&fsq_verts[0], sizeof(fsq_verts)}
3333
})
3434

3535
mut pipeline := gfx.PipelineDesc{}
@@ -48,7 +48,7 @@ fn frame(mut state State) {
4848
gfx.begin_pass(sapp.create_default_pass(state.paction))
4949
gfx.apply_pipeline(state.pip)
5050
gfx.apply_bindings(state.bind)
51-
gfx.apply_uniforms(.vs, C.SLOT_vs_params, unsafe { gfx.Range{&state.params, sizeof(state.params)} })
51+
gfx.apply_uniforms(.vs, C.SLOT_vs_params, gfx.Range{&state.params, sizeof(state.params)})
5252
gfx.draw(0, 3, 1)
5353
gfx.end_pass()
5454
gfx.commit()

0 commit comments

Comments
 (0)