mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 628658: Ensure the container layer's clip is reset when done drawing a layer. r=roc,joedrew a=blocking-final
This commit is contained in:
parent
46f9ff2b07
commit
b4fa1d9cec
@ -316,6 +316,14 @@ ContainerLayerD3D9::RenderLayer()
|
||||
}
|
||||
|
||||
layerToRender->RenderLayer();
|
||||
|
||||
if (clipRect && !useIntermediate) {
|
||||
// In this situation we've set a new scissor rect and we will continue
|
||||
// to render directly to our container. We need to restore its scissor.
|
||||
// Not setting this when useIntermediate is true is an optimization since
|
||||
// we'll get a new one set anyway.
|
||||
device()->SetScissorRect(&containerClipRect);
|
||||
}
|
||||
}
|
||||
|
||||
if (useIntermediate) {
|
||||
@ -337,8 +345,6 @@ ContainerLayerD3D9::RenderLayer()
|
||||
device()->SetScissorRect(&containerClipRect);
|
||||
device()->SetTexture(0, renderTexture);
|
||||
device()->DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 2);
|
||||
} else {
|
||||
device()->SetScissorRect(&containerClipRect);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user