From 8db988cd8c81a716ff477f50d54f50dc924b1cf5 Mon Sep 17 00:00:00 2001 From: skyjake Date: Tue, 24 Jan 2012 11:02:24 +0200 Subject: [PATCH] libcommon|Fixed: GL matrices in the score board drawer The drawer was pushing the projection stack and popping the model-view one. Now both stacks are pushed/popped. --- doomsday/plugins/common/src/hu_stuff.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doomsday/plugins/common/src/hu_stuff.c b/doomsday/plugins/common/src/hu_stuff.c index d4a121602c..b395a37a2e 100644 --- a/doomsday/plugins/common/src/hu_stuff.c +++ b/doomsday/plugins/common/src/hu_stuff.c @@ -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. @@ -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(); }