For some reason we use DrawActiveTexture in the GL stencil stuff, don't want to disable stencil unconditionally..

This commit is contained in:
Henrik Rydgård committed 2018-02-08 16:59:03 +01:00
1 parent 0fe4e70aef
commit 625595c6cc
3 files changed
+9 -5

No files matched your search

+5 -3
View File
@@ -419,11 +419,13 @@ void FramebufferManagerGLES::DrawActiveTexture(float x, float y, float w, float
pos[i * 3 + 1] = pos[i * 3 + 1] * invDestH - 1.0f;
}
// We always want a plain state here.
// We always want a plain state here, well, except for when it's used by the stencil stuff...
render_->SetNoBlendAndMask(0xF);
render_->SetDepth(false, false, GL_ALWAYS);
render_->SetStencilDisabled();
render_->SetRaster(false, GL_CCW, GL_FALSE, GL_FALSE);
render_->SetRaster(false, GL_CCW, GL_FRONT, GL_FALSE);
if (!(flags & DRAWTEX_KEEP_STENCIL)) {
render_->SetStencilDisabled();
}
// Upscaling postshaders don't look well with linear
if (flags & DRAWTEX_LINEAR) {