Skip to content

Commit c19258a

Browse files
author
GH Action
committed
1 parent b2f4e7e commit c19258a

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

examples/sgl-context/sgl-context.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,18 @@ extern "C" fn init(user_data: *mut ffi::c_void) {
5353
clear_value: sg::Color { r: 0.5, g: 0.7, b: 1.0, a: 1.0 },
5454
..Default::default()
5555
};
56-
state.display.sgl_pip = sgl::context_make_pipeline(sgl::default_context(), &sg::PipelineDesc {
57-
cull_mode: sg::CullMode::Back,
58-
depth: sg::DepthState {
59-
write_enabled: true,
60-
compare: sg::CompareFunc::LessEqual,
56+
state.display.sgl_pip = sgl::context_make_pipeline(
57+
sgl::default_context(),
58+
&sg::PipelineDesc {
59+
cull_mode: sg::CullMode::Back,
60+
depth: sg::DepthState {
61+
write_enabled: true,
62+
compare: sg::CompareFunc::LessEqual,
63+
..Default::default()
64+
},
6165
..Default::default()
6266
},
63-
..Default::default()
64-
});
67+
);
6568

6669
// create a sokol-gl context compatible with the offscreen render pass
6770
// (specific color pixel format, no depth-stencil-surface, no MSAA)

src/sokol/c/sokol_gfx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@
452452
sg_apply_scissor_rect[f]
453453
sg_draw
454454

455-
The folling function may be called inside a render- or compute-pass, but
455+
The following function may be called inside a render- or compute-pass, but
456456
not outside a pass:
457457

458458
sg_apply_pipeline

0 commit comments

Comments
 (0)