diff --git a/gfx/layers/d3d11/TextureD3D11.cpp b/gfx/layers/d3d11/TextureD3D11.cpp index 3e38210fc874..266747f3f17c 100644 --- a/gfx/layers/d3d11/TextureD3D11.cpp +++ b/gfx/layers/d3d11/TextureD3D11.cpp @@ -658,7 +658,7 @@ CompositingRenderTargetD3D11::CompositingRenderTargetD3D11(ID3D11Texture2D* aTex void CompositingRenderTargetD3D11::BindRenderTarget(ID3D11DeviceContext* aContext) { - if (!mClearOnBind) { + if (mClearOnBind) { FLOAT clear[] = { 0, 0, 0, 0 }; aContext->ClearRenderTargetView(mRTView, clear); mClearOnBind = false;