Skip to content

Commit

Permalink
(fix): Correct typo in swapchain_occluded
Browse files Browse the repository at this point in the history
  • Loading branch information
hyblocker committed Sep 25, 2024
1 parent cc45636 commit d85c76e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Backends/RmlUi_Backend_Win32_DX11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct BackendData {
ID3D11Device* pd3dDevice = nullptr;
ID3D11DeviceContext* pd3dDeviceContext = nullptr;
IDXGISwapChain* pSwapChain = nullptr;
bool swapchain_cccluded = false;
bool swapchain_occluded = false;
ID3D11RenderTargetView* pMainRenderTargetView = nullptr;
} d3d_resources;

Expand Down Expand Up @@ -273,7 +273,7 @@ void Backend::PresentFrame()
// Present
HRESULT hr = data->d3d_resources.pSwapChain->Present(1, 0); // Present with vsync
//HRESULT hr = g_pSwapChain->Present(0, 0); // Present without vsync
data->d3d_resources.swapchain_cccluded = (hr == DXGI_STATUS_OCCLUDED);
data->d3d_resources.swapchain_occluded = (hr == DXGI_STATUS_OCCLUDED);

// Optional, used to mark frames during performance profiling.
RMLUI_FrameMark;
Expand Down

0 comments on commit d85c76e

Please sign in to comment.