Skip to content

Commit 213d138

Browse files
committed
fix c++ designated init error
1 parent ecb9908 commit 213d138

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/common/ui.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ bool ui_input(const sapp_event* event) {
151151
ui_texture_t ui_create_texture(int w, int h) {
152152
return simgui_imtextureid_with_sampler(
153153
sg_make_image({
154-
.width = w,
155-
.height = h,
156154
.usage = {
157155
.stream_update = true,
158156
},
157+
.width = w,
158+
.height = h,
159159
.pixel_format = SG_PIXELFORMAT_RGBA8,
160160
}),
161161
state.nearest_sampler);

0 commit comments

Comments
 (0)