mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 667290: Properly clear the downsampled destination before blending to it. r=jrmuizel
This commit is contained in:
parent
14726e5fee
commit
e768a19cf6
@ -446,6 +446,11 @@ DrawTargetD2D::DrawSurfaceWithShadow(SourceSurface *aSurface,
|
||||
mDevice->CreateRenderTargetView(tmpDSTexture, NULL, byRef(dsRTView));
|
||||
mDevice->CreateShaderResourceView(tmpDSTexture, NULL, byRef(dsSRView));
|
||||
|
||||
// We're not guaranteed the texture we created will be empty, we've
|
||||
// seen old content at least on NVidia drivers.
|
||||
float color[4] = { 0, 0, 0, 0 };
|
||||
mDevice->ClearRenderTargetView(dsRTView, color);
|
||||
|
||||
rtViews = dsRTView;
|
||||
mDevice->OMSetRenderTargets(1, &rtViews, NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user