Skip to content

Commit d2af9f4

Browse files
committed
fix: make sure framebuffer sample use the proper color format
1 parent 1b979fc commit d2af9f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/sample-framebuffer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ static void init(void) {
131131
.render_target = true,
132132
.width = 128,
133133
.height = 128,
134+
.pixel_format = sapp_color_format(),
134135
.sample_count = sapp_sample_count(),
135136
};
136137
fb_color_image = sg_make_image(&fb_color_image_desc);
@@ -144,6 +145,7 @@ static void init(void) {
144145
.render_target = true,
145146
.width = 128,
146147
.height = 128,
148+
.pixel_format = sapp_color_format(),
147149
.sample_count = 1,
148150
};
149151
fb_resolve_image = sg_make_image(&fb_resolve_image_desc);

0 commit comments

Comments
 (0)