Commit 07e68915 authored by hybrid's avatar hybrid

Avoid the wrongly oriented triangles by use of quads.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@740 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 0d00c3be
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment