Skip to content

Commit

Permalink
libcommon|Fixed: GL matrices in the score board drawer
Browse files Browse the repository at this point in the history
The drawer was pushing the projection stack and popping
the model-view one. Now both stacks are pushed/popped.
  • Loading branch information
skyjake committed Jan 24, 2012
1 parent e4f0faa commit 8db988c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doomsday/plugins/common/src/hu_stuff.c
Expand Up @@ -819,6 +819,7 @@ void HU_DrawScoreBoard(int player)

// Scale by HUD scale.
DGL_MatrixMode(DGL_MODELVIEW);
DGL_PushMatrix();
DGL_Translatef(16, 16, 0);

// Draw a background around the whole thing.
Expand All @@ -838,6 +839,9 @@ void HU_DrawScoreBoard(int player)

DGL_Disable(DGL_TEXTURE_2D);

// Restore earlier matrices.
DGL_MatrixMode(DGL_PROJECTION);
DGL_PopMatrix();
DGL_MatrixMode(DGL_MODELVIEW);
DGL_PopMatrix();
}
Expand Down

0 comments on commit 8db988c

Please sign in to comment.