Skip to content

Commit

Permalink
Fixed|Console Renderer: GL_TEXTURE stack underflow with con-backgroun…
Browse files Browse the repository at this point in the history
…d-turn

If both a console background material and a non-zero turn velocity
was configured, the GL_TEXTURE stack was manipulated incorrectly,
resulting in underflow.
  • Loading branch information
danij-deng committed Jan 9, 2013
1 parent 90bf08b commit 61d88c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/engine/src/render/rend_console.cpp
Expand Up @@ -582,12 +582,12 @@ static void drawConsoleBackground(Point2Raw const *origin, Size2Raw const *size,

if(consoleBackgroundMaterial)
{
glDisable(GL_TEXTURE_2D);
if(funnyAng != 0)
if(consoleBackgroundTurn != 0)
{
glMatrixMode(GL_TEXTURE);
glPopMatrix();
}
glDisable(GL_TEXTURE_2D);
}
}

Expand Down

0 comments on commit 61d88c4

Please sign in to comment.