aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/container.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/menu/container.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/menu/container.cpp b/src/menu/container.cpp
index 3cf8d770..bf742dff 100644
--- a/src/menu/container.cpp
+++ b/src/menu/container.cpp
@@ -24,6 +24,8 @@
* $Id$
*/
+#include <GL/gl.h>
+
#include "container.hpp"
#include "frame.hpp"
@@ -60,9 +62,13 @@ namespace usdx
frame->repaint();
}
+ GLfloat matrix[16];
+ glGetFloatv(GL_MODELVIEW_MATRIX, matrix);
+
for (std::list<DrawableControl*>::iterator it =
controls.begin(); it != controls.end(); it++) {
(*it)->repaint();
+ glLoadMatrixf(matrix);
}
}