Skip to content

Commit

Permalink
fix: make sure framebuffer sample use the proper color format
Browse files Browse the repository at this point in the history
  • Loading branch information
edubart committed Jan 9, 2025
1 parent 1b979fc commit d2af9f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/sample-framebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ static void init(void) {
.render_target = true,
.width = 128,
.height = 128,
.pixel_format = sapp_color_format(),
.sample_count = sapp_sample_count(),
};
fb_color_image = sg_make_image(&fb_color_image_desc);
Expand All @@ -144,6 +145,7 @@ static void init(void) {
.render_target = true,
.width = 128,
.height = 128,
.pixel_format = sapp_color_format(),
.sample_count = 1,
};
fb_resolve_image = sg_make_image(&fb_resolve_image_desc);
Expand Down

0 comments on commit d2af9f4

Please sign in to comment.