D3D9: Avoid clearing color on stencil upload.

This makes it match Direct3D 9.  We ideally want to clear alpha, but
certainly not RGB.
This commit is contained in:
Unknown W. Brackets 2020-05-18 21:35:02 -07:00
parent 4ef4325fdb
commit 2a5b465c44

View file

@ -207,7 +207,7 @@ bool FramebufferManagerDX9::NotifyStencilUpload(u32 addr, int size, StencilUploa
if (!tex)
return false;
device_->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_STENCIL, D3DCOLOR_RGBA(0, 0, 0, 0), 0.0f, 0);
// TODO: Ideally, we should clear alpha to zero here (but not RGB.)
dxstate.stencilFunc.set(D3DCMP_ALWAYS, 0xFF, 0xFF);