X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=libs%2Fgtkutil%2Fxorrectangle.cpp;h=99ff978b09e3576d35136f477f8771812f5b6255;hb=2f3014d79f98abd19b003327ed7852e8246e0a1e;hp=17d48bf9d097d3e103c6dd12866dc88a3d20be6e;hpb=8c4e2fcb9c77360f0918be91642777f91fc99e53;p=xonotic%2Fnetradiant.git diff --git a/libs/gtkutil/xorrectangle.cpp b/libs/gtkutil/xorrectangle.cpp index 17d48bf9..99ff978b 100644 --- a/libs/gtkutil/xorrectangle.cpp +++ b/libs/gtkutil/xorrectangle.cpp @@ -67,6 +67,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 );