]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
ensure cull face state is committed in softrast path
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 28 Jan 2011 15:19:29 +0000 (15:19 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 28 Jan 2011 15:19:29 +0000 (15:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10771 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index c81b3ed6445d601620e7e5ba638ae11ada60e484..310f4fae5cc929e6ed0b5f30312ec5b115d1c6b5 100644 (file)
@@ -2061,7 +2061,12 @@ void GL_CullFace(int state)
                Con_DPrintf("FIXME D3D11 %s:%i %s\n", __FILE__, __LINE__, __FUNCTION__);
                break;
        case RENDERPATH_SOFT:
-               DPSOFTRAST_CullFace(gl_state.cullface);
+               if (gl_state.cullface != state)
+               {
+                       gl_state.cullface = state;
+                       gl_state.cullfaceenable = state != GL_NONE ? true : false;
+                       DPSOFTRAST_CullFace(gl_state.cullface);
+               }
                break;
        }
 }