Commit 3807fcf3 authored by lukeph's avatar lukeph

Fixed a bug with the Frontface culling render state in opengl.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1407 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 2aeafd70
...@@ -1755,7 +1755,7 @@ void COpenGLDriver::setBasicRenderStates(const SMaterial& material, const SMater ...@@ -1755,7 +1755,7 @@ void COpenGLDriver::setBasicRenderStates(const SMaterial& material, const SMater
} }
// back face culling // back face culling
if (resetAllRenderStates || lastmaterial.BackfaceCulling != material.BackfaceCulling) if (resetAllRenderStates || (lastmaterial.FrontfaceCulling != material.FrontfaceCulling) || (lastmaterial.BackfaceCulling != material.BackfaceCulling))
{ {
if ((material.FrontfaceCulling) && (material.BackfaceCulling)) if ((material.FrontfaceCulling) && (material.BackfaceCulling))
{ {
......
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