From 52b6b76bee0f4c8116c7184bd9c90fb12c1fdc0a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 22 May 2003 08:11:47 +0000 Subject: [PATCH] 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. --- stepmania/src/RageDisplay_D3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index 8a7c8cb332..a3e17efa4a 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -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 )