aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/container.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/menu/container.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/menu/container.cpp b/src/menu/container.cpp
index d4808ee3..d225ef1e 100644
--- a/src/menu/container.cpp
+++ b/src/menu/container.cpp
@@ -22,10 +22,9 @@
*
*/
-#include <GL/gl.h>
-
#include "container.hpp"
#include "frame.hpp"
+#include "modelview_matrix_cache.hpp"
namespace usdx
{
@@ -62,13 +61,11 @@ namespace usdx
frame->repaint();
}
- GLfloat matrix[16];
- glGetFloatv(GL_MODELVIEW_MATRIX, matrix);
-
+ ModelviewMatrixCache c;
for (std::list<DrawableControl*>::iterator it =
controls.begin(); it != controls.end(); it++) {
(*it)->repaint();
- glLoadMatrixf(matrix);
+ c.restore();
}
}