D3D's D3DRS_CULLMODE D3DCULL_CCW means "cull CCW polys".

OpenGL's GL_FRONT_FACE = GL_CCW means front faces are CCW, so
cull CW faces (assuming GL_CULL_FACE_MODE is GL_BACK).

They're logically opposite.
This commit is contained in:
Glenn Maynard
2003-05-22 08:11:47 +00:00
parent 5b77364c8a
commit 52b6b76bee
+1 -1
View File
@@ -698,7 +698,7 @@ void RageDisplay::SetLightDirectional(
void RageDisplay::SetBackfaceCull( bool b )
{
g_pd3dDevice->SetRenderState( D3DRS_CULLMODE, b ? D3DCULL_CCW : D3DCULL_NONE );
g_pd3dDevice->SetRenderState( D3DRS_CULLMODE, b ? D3DCULL_CW : D3DCULL_NONE );
}
void RageDisplay::DeleteTexture( unsigned uTexHandle )