From 4fcffabf15f6de6fb92d75ebf02684e87c1828de Mon Sep 17 00:00:00 2001 From: mrlukeparry Date: Sat, 31 Dec 2011 20:01:24 +0000 Subject: [PATCH] Remove un-necessary GL command that seemed to cause rendering artifacts. git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5372 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/Sketcher/Gui/SoDatumLabel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Mod/Sketcher/Gui/SoDatumLabel.cpp b/src/Mod/Sketcher/Gui/SoDatumLabel.cpp index ccd27a3f18..2896a54b86 100644 --- a/src/Mod/Sketcher/Gui/SoDatumLabel.cpp +++ b/src/Mod/Sketcher/Gui/SoDatumLabel.cpp @@ -241,9 +241,6 @@ void SoDatumLabel::GLRender(SoGLRenderAction * action) state->push(); - glPixelStorei(GL_UNPACK_ROW_LENGTH, srcw); - glPixelStorei(GL_UNPACK_ALIGNMENT, 4); - glPushAttrib(GL_ENABLE_BIT | GL_PIXEL_MODE_BIT | GL_COLOR_BUFFER_BIT); glDisable(GL_LIGHTING); glEnable(GL_DEPTH_TEST); @@ -282,7 +279,7 @@ void SoDatumLabel::GLRender(SoGLRenderAction * action) glEnd(); // Reset the Mode - glPixelStorei(GL_UNPACK_ALIGNMENT, 4); + glPopAttrib(); state->pop(); }