Skip to content

Commit

Permalink
Fix flickering due to face culling not being properly enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
perim committed Apr 2, 2011
1 parent 71ad7a8 commit de3be04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/framework/wzapp.cpp
Expand Up @@ -232,6 +232,8 @@ void WzMainWindow::drawPixmap(int XPos, int YPos, QPixmap *pix)
{
QPainter painter(context()->device());
painter.drawPixmap(XPos, YPos, *pix);
painter.end();
glEnable(GL_CULL_FACE);
rendStatesRendModeHack(); // rendStates.rendMode = REND_ALPHA;
pie_SetRendMode(REND_OPAQUE); // beat state machinery into submission
}
Expand Down Expand Up @@ -1222,6 +1224,7 @@ void iV_DrawTextRotated(const char* string, float XPos, float YPos, float rotati
{
painter.drawText(XPos, YPos, QString::fromUtf8(string));
}
painter.end();
glEnable(GL_CULL_FACE);
rendStatesRendModeHack(); // rendStates.rendMode = REND_ALPHA;
pie_SetRendMode(REND_OPAQUE); // beat state machinery into submission
Expand Down

0 comments on commit de3be04

Please sign in to comment.