mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 11:13:44 +01:00
GLES: Ensure stencil upload clear in render pass.
Fixes crashes in Star Ocean.
This commit is contained in:
1 parent
4f1b8d80a9
commit
a135035850
1 file changed
+3
@@ -110,6 +110,9 @@ bool FramebufferManagerGLES::NotifyStencilUpload(u32 addr, int size, bool skipZe
|
||||
}
|
||||
|
||||
// Let's not bother with the shader if it's just zero.
|
||||
if (dstBuffer->fbo) {
|
||||
draw_->BindFramebufferAsRenderTarget(dstBuffer->fbo, { Draw::RPAction::KEEP, Draw::RPAction::KEEP, Draw::RPAction::CLEAR });
|
||||
}
|
||||
render_->SetNoBlendAndMask(0x8);
|
||||
render_->Clear(0, 0, 0, GL_STENCIL_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
|
||||
render_->SetNoBlendAndMask(0xF);
|
||||
|
||||
Reference in new issue
Block a user