mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
GLES: Document stencil clearing bug.
This commit is contained in:
1 parent
790e3121d2
commit
22bf124631
2 files changed
+3
No files matched your search
@@ -113,6 +113,7 @@ bool FramebufferManagerGLES::NotifyStencilUpload(u32 addr, int size, bool skipZe
|
||||
if (dstBuffer->fbo) {
|
||||
draw_->BindFramebufferAsRenderTarget(dstBuffer->fbo, { Draw::RPAction::KEEP, Draw::RPAction::KEEP, Draw::RPAction::CLEAR });
|
||||
}
|
||||
// TODO: This incorrectly does not apply to the clear currently.
|
||||
render_->SetNoBlendAndMask(0x8);
|
||||
render_->Clear(0, 0, 0, GL_STENCIL_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
|
||||
render_->SetNoBlendAndMask(0xF);
|
||||
|
||||
@@ -498,6 +498,8 @@ void GLQueueRunner::PerformRenderPass(const GLRStep &step) {
|
||||
break;
|
||||
case GLRRenderCommand::CLEAR:
|
||||
glDisable(GL_SCISSOR_TEST);
|
||||
// TODO: We sometimes pass a color mask in that we want to respect (StencilBufferGLES.)
|
||||
// We want to clear to only clear alpha, in that case.
|
||||
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
|
||||
colorMask = 0xF;
|
||||
if (c.clear.clearMask & GL_COLOR_BUFFER_BIT) {
|
||||
|
||||
Reference in new issue
Block a user