- 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:
Christoph Oelckers 2017-08-27 09:58:25 +02:00
parent ca47b138be
commit e424ef63f2

View file

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