Skip to content

Commit

Permalink
Fix framebuffer viewport/scissor
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Sep 20, 2024
1 parent 9e66617 commit 7c480fa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ void kope_d3d12_device_create(kope_g5_device *device, const kope_g5_device_wishl
for (int i = 0; i < KOPE_D3D12_FRAME_COUNT; ++i) {
device->d3d12.swap_chain->GetBuffer(i, IID_GRAPHICS_PPV_ARGS(&device->d3d12.framebuffer_textures[i].d3d12.resource));

device->d3d12.framebuffer_textures[i].d3d12.width = kinc_window_width(0);
device->d3d12.framebuffer_textures[i].d3d12.height = kinc_window_height(0);

#ifdef KOPE_G5_VALIDATION
device->d3d12.framebuffer_textures[i].validation_format = KOPE_G5_TEXTURE_FORMAT_RGBA8_UNORM;
#endif
Expand Down

0 comments on commit 7c480fa

Please sign in to comment.