From 026050076d8a48ae97ae2bab50bf4019bb91c97a Mon Sep 17 00:00:00 2001 From: hybrid Date: Wed, 27 Jun 2007 21:49:59 +0000 Subject: [PATCH] Avoid the wrongly oriented triangles by use of quads. git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@740 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/COpenGLDriver.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/Irrlicht/COpenGLDriver.cpp b/source/Irrlicht/COpenGLDriver.cpp index b97f229e..ab52108f 100644 --- a/source/Irrlicht/COpenGLDriver.cpp +++ b/source/Irrlicht/COpenGLDriver.cpp @@ -1782,7 +1782,6 @@ void COpenGLDriver::drawStencilShadow(bool clearStencilBuffer, video::SColor lef glDepthMask(GL_FALSE); glDepthFunc( GL_LEQUAL ); - glFrontFace( GL_CCW ); glShadeModel( GL_FLAT ); glColorMask( GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE ); @@ -1798,7 +1797,7 @@ void COpenGLDriver::drawStencilShadow(bool clearStencilBuffer, video::SColor lef glPushMatrix(); glLoadIdentity(); - glBegin(GL_TRIANGLE_STRIP); + glBegin(GL_QUADS); glColor4ub (leftUpEdge.getRed(), leftUpEdge.getGreen(), leftUpEdge.getBlue(), leftUpEdge.getAlpha() ); glVertex3f(-1.1f, 1.1f,0.9f);