Skip to content

Commit

Permalink
Fixed swapchain window display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Oopskid committed Oct 26, 2023
1 parent 4b4e276 commit dff5666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rendering/RDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ HRESULT RDevice::makeSwapChain(HWND context, DXGI_FORMAT bufferFormat)
desc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
desc.SampleDesc.Count = 1;
desc.SampleDesc.Quality = 0;
desc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL;
desc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
desc.OutputWindow = context;

return makeSwapChain(context, desc);
Expand Down

0 comments on commit dff5666

Please sign in to comment.