Use opaque black in ClearRenderTargetView()

Intel's old Gen9 performance guide says it's a little faster.
This commit is contained in:
Cameron Gutman
2025-12-01 22:39:28 -06:00
parent 5feb331c46
commit 58f9b2a83b

View File

@@ -582,7 +582,7 @@ void D3D11VARenderer::renderFrame(AVFrame* frame)
lockContext(this);
// Clear the back buffer
const float clearColor[4] = {0.0f, 0.0f, 0.0f, 0.0f};
const float clearColor[4] = {0.0f, 0.0f, 0.0f, 1.0f};
m_DeviceContext->ClearRenderTargetView(m_RenderTargetView.Get(), clearColor);
// Bind the back buffer. This needs to be done each time,