GLES: Ensure stencil upload clear in render pass.

Fixes crashes in Star Ocean.
This commit is contained in:
Unknown W. Brackets 2018-01-18 21:14:17 -08:00 committed by Henrik Rydgård
parent 4f1b8d80a9
commit a135035850

View File

@ -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);