]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/gtkutil/xorrectangle.cpp
fix merge
[xonotic/netradiant.git] / libs / gtkutil / xorrectangle.cpp
index e7012328d104a9df2c68916465cfbed088f85496..b9b15faf8c688afdec684a66a73e32152594f3fa 100644 (file)
@@ -63,6 +63,10 @@ void XORRectangle::set(rectangle_t rectangle)
                                glMatrixMode( GL_PROJECTION );
                                glLoadIdentity();
                                glOrtho( 0, width, 0, height, -100, 100 );
+
+                               glMatrixMode( GL_MODELVIEW );
+                               glLoadIdentity();
+
                                glPolygonMode( GL_FRONT_AND_BACK, GL_FILL );
                                glDisable( GL_DEPTH_TEST );