Skip to content

Commit 766f9ef

Browse files
committed
Set the framebuffer format in 9 and 12
1 parent 8854366 commit 766f9ef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • 09_depth_render_targets/sources
  • 12_set_render_target_depth/sources

09_depth_render_targets/sources/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static void update(void *data) {
8282
.texture.texture = framebuffer,
8383
.texture.array_layer_count = 1,
8484
.texture.mip_level_count = 1,
85-
.texture.format = KORE_GPU_TEXTURE_FORMAT_BGRA8_UNORM,
85+
.texture.format = kore_gpu_device_framebuffer_format(&device),
8686
.texture.dimension = KORE_GPU_TEXTURE_VIEW_DIMENSION_2D,
8787
},
8888
},

12_set_render_target_depth/sources/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static void update(void *data) {
8686
.texture = framebuffer,
8787
.array_layer_count = 1,
8888
.mip_level_count = 1,
89-
.format = KORE_GPU_TEXTURE_FORMAT_BGRA8_UNORM,
89+
.format = kore_gpu_device_framebuffer_format(&device),
9090
.dimension = KORE_GPU_TEXTURE_VIEW_DIMENSION_2D,
9191
},
9292
},

0 commit comments

Comments
 (0)