Skip to content

Commit db77cda

Browse files
Fixed Linux build failure
1 parent 474d9ff commit db77cda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Tutorials/Tutorial00_HelloLinux/src/Tutorial00_HelloLinux.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ class Tutorial00App
244244
{
245245
// Clear the back buffer
246246
const float ClearColor[] = { 0.350f, 0.350f, 0.350f, 1.0f };
247-
m_pImmediateContext->ClearRenderTarget(nullptr, ClearColor);
248-
m_pImmediateContext->ClearDepthStencil(nullptr, CLEAR_DEPTH_FLAG, 1.f);
247+
m_pImmediateContext->ClearRenderTarget(nullptr, ClearColor, CLEAR_RENDER_TARGET_TRANSITION_STATE);
248+
m_pImmediateContext->ClearDepthStencil(nullptr, CLEAR_DEPTH_FLAG | CLEAR_DEPTH_STENCIL_TRANSITION_STATE_FLAG, 1.f);
249249

250250
// Set pipeline state in the immediate context
251251
m_pImmediateContext->SetPipelineState(m_pPSO);

0 commit comments

Comments
 (0)