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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user