mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
For some reason we use DrawActiveTexture in the GL stencil stuff, don't want to disable stencil unconditionally..
This commit is contained in:
1 parent
0fe4e70aef
commit
625595c6cc
3 files changed
+9
-5
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user