mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 17:02:19 +00:00
GLES: Ensure stencil upload clear in render pass.
Fixes crashes in Star Ocean.
This commit is contained in:
parent
4f1b8d80a9
commit
a135035850
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user