actually do the polygon offset for quads

This commit is contained in:
Josh Holtrop 2010-12-19 00:11:36 -05:00
parent dff232ec66
commit 97530106c2

View File

@ -1369,6 +1369,7 @@ int Engine::Quad::render()
if (do_offset) if (do_offset)
{ {
glEnable(GL_POLYGON_OFFSET_FILL); glEnable(GL_POLYGON_OFFSET_FILL);
glPolygonOffset(0.0, -1.0f * m_offset);
} }
if (m_texture != 0) if (m_texture != 0)
{ {