Fixed bug with line stipple and setMode.
1.1 --- a/src/modules/graphics/opengl/Graphics.cpp Mon Nov 02 23:00:08 2009 +0100
1.2 +++ b/src/modules/graphics/opengl/Graphics.cpp Thu Nov 05 22:10:00 2009 +0100
1.3 @@ -99,7 +99,7 @@
1.4 //get line style
1.5 s.lineStyle = (glIsEnabled(GL_LINE_SMOOTH) == GL_TRUE) ? Graphics::LINE_SMOOTH : Graphics::LINE_ROUGH;
1.6 //get line stipple
1.7 - s.stipple = (glIsEnabled(GL_LINE_SMOOTH) == GL_TRUE) ? true : false;
1.8 + s.stipple = (glIsEnabled(GL_LINE_STIPPLE) == GL_TRUE);
1.9 if (s.stipple)
1.10 {
1.11 //get the stipple repeat
1.12 @@ -112,7 +112,7 @@
1.13 //get point style
1.14 s.pointStyle = (glIsEnabled(GL_POINT_SMOOTH) == GL_TRUE) ? Graphics::POINT_SMOOTH : Graphics::POINT_ROUGH;
1.15 //get scissor status
1.16 - s.scissor = (glIsEnabled(GL_SCISSOR_TEST) == GL_TRUE) ? true : false;
1.17 + s.scissor = (glIsEnabled(GL_SCISSOR_TEST) == GL_TRUE);
1.18 //do we have scissor, if so, store the box
1.19 if (s.scissor)
1.20 glGetIntegerv(GL_SCISSOR_BOX, s.scissorBox);
1.21 @@ -221,9 +221,6 @@
1.22 glEnable(GL_POINT_SMOOTH);
1.23 glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
1.24
1.25 - // TODO:
1.26 - //reset();
1.27 -
1.28 // Enable textures
1.29 glEnable(GL_TEXTURE_2D);
1.30