From d508c3829fd0d65df859c7761b08e60f2768d7c2 Mon Sep 17 00:00:00 2001 From: rude Date: Thu, 5 Nov 2009 22:10:00 +0100 Subject: [PATCH] Fixed bug with line stipple and setMode. --- src/modules/graphics/opengl/Graphics.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index f91e0dd84..7d4832bd3 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -99,7 +99,7 @@ namespace opengl //get line style s.lineStyle = (glIsEnabled(GL_LINE_SMOOTH) == GL_TRUE) ? Graphics::LINE_SMOOTH : Graphics::LINE_ROUGH; //get line stipple - s.stipple = (glIsEnabled(GL_LINE_SMOOTH) == GL_TRUE) ? true : false; + s.stipple = (glIsEnabled(GL_LINE_STIPPLE) == GL_TRUE); if (s.stipple) { //get the stipple repeat @@ -112,7 +112,7 @@ namespace opengl //get point style s.pointStyle = (glIsEnabled(GL_POINT_SMOOTH) == GL_TRUE) ? Graphics::POINT_SMOOTH : Graphics::POINT_ROUGH; //get scissor status - s.scissor = (glIsEnabled(GL_SCISSOR_TEST) == GL_TRUE) ? true : false; + s.scissor = (glIsEnabled(GL_SCISSOR_TEST) == GL_TRUE); //do we have scissor, if so, store the box if (s.scissor) glGetIntegerv(GL_SCISSOR_BOX, s.scissorBox); @@ -221,9 +221,6 @@ namespace opengl glEnable(GL_POINT_SMOOTH); glHint(GL_POINT_SMOOTH_HINT, GL_NICEST); - // TODO: - //reset(); - // Enable textures glEnable(GL_TEXTURE_2D);