mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
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:
parent
4ef4325fdb
commit
2a5b465c44
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue