mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Use opaque black in ClearRenderTargetView()
Intel's old Gen9 performance guide says it's a little faster.
This commit is contained in:
@@ -582,7 +582,7 @@ void D3D11VARenderer::renderFrame(AVFrame* frame)
|
|||||||
lockContext(this);
|
lockContext(this);
|
||||||
|
|
||||||
// Clear the back buffer
|
// 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);
|
m_DeviceContext->ClearRenderTargetView(m_RenderTargetView.Get(), clearColor);
|
||||||
|
|
||||||
// Bind the back buffer. This needs to be done each time,
|
// Bind the back buffer. This needs to be done each time,
|
||||||
|
|||||||
Reference in New Issue
Block a user