Skip to content

Commit 58f9b2a

Browse files
committed
Use opaque black in ClearRenderTargetView()
Intel's old Gen9 performance guide says it's a little faster.
1 parent 5feb331 commit 58f9b2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/streaming/video/ffmpeg-renderers/d3d11va.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ void D3D11VARenderer::renderFrame(AVFrame* frame)
582582
lockContext(this);
583583

584584
// Clear the back buffer
585-
const float clearColor[4] = {0.0f, 0.0f, 0.0f, 0.0f};
585+
const float clearColor[4] = {0.0f, 0.0f, 0.0f, 1.0f};
586586
m_DeviceContext->ClearRenderTargetView(m_RenderTargetView.Get(), clearColor);
587587

588588
// Bind the back buffer. This needs to be done each time,

0 commit comments

Comments
 (0)