mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-30 07:41:22 +00:00
- fixed: Sprites drawn in the opaque pass still need to set their texture mode so that they can be drawn with STYLE_Stencil.
This commit is contained in:
parent
ca47b138be
commit
e424ef63f2
1 changed files with 6 additions and 0 deletions
|
@ -321,6 +321,12 @@ void GLSprite::Draw(int pass)
|
||||||
}
|
}
|
||||||
else if (modelframe == nullptr)
|
else if (modelframe == nullptr)
|
||||||
{
|
{
|
||||||
|
int tm, sb, db, be;
|
||||||
|
|
||||||
|
// This still needs to set the texture mode. As blend mode it will always use GL_ONE/GL_ZERO
|
||||||
|
gl_GetRenderStyle(RenderStyle, false, false, &tm, &sb, &db, &be);
|
||||||
|
gl_RenderState.SetTextureMode(tm);
|
||||||
|
|
||||||
glEnable(GL_POLYGON_OFFSET_FILL);
|
glEnable(GL_POLYGON_OFFSET_FILL);
|
||||||
glPolygonOffset(-1.0f, -128.0f);
|
glPolygonOffset(-1.0f, -128.0f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue