diff --git a/ref/gl/gl_studio.c b/ref/gl/gl_studio.c index 3618faf7..44b6a044 100644 --- a/ref/gl/gl_studio.c +++ b/ref/gl/gl_studio.c @@ -135,7 +135,6 @@ mstudiobodyparts_t *m_pBodyPart; player_info_t *m_pPlayerInfo; studiohdr_t *m_pStudioHeader; float m_flGaitMovement; -int g_iBackFaceCull; int g_nTopColor, g_nBottomColor; // remap colors int g_nFaceFlags, g_nForceFaceFlags; @@ -1839,7 +1838,7 @@ sets true for enable backculling (for left-hand viewmodel) */ void R_StudioSetCullState( int iCull ) { - g_iBackFaceCull = iCull; + // This function intentionally does nothing } /* @@ -3664,7 +3663,7 @@ void R_DrawViewModel( void ) RI.currentmodel = RI.currententity->model; // backface culling for left-handed weapons - if( R_AllowFlipViewModel( RI.currententity ) || g_iBackFaceCull ) + if( R_AllowFlipViewModel( RI.currententity )) { tr.fFlipViewModel = true; pglFrontFace( GL_CW ); @@ -3685,7 +3684,7 @@ void R_DrawViewModel( void ) pglDepthRange( gldepthmin, gldepthmax ); // backface culling for left-handed weapons - if( R_AllowFlipViewModel( RI.currententity ) || g_iBackFaceCull ) + if( R_AllowFlipViewModel( RI.currententity )) { tr.fFlipViewModel = false; pglFrontFace( GL_CCW ); diff --git a/ref/soft/r_studio.c b/ref/soft/r_studio.c index e3b3b82f..e55ce2f2 100644 --- a/ref/soft/r_studio.c +++ b/ref/soft/r_studio.c @@ -131,7 +131,6 @@ mstudiobodyparts_t *m_pBodyPart; player_info_t *m_pPlayerInfo; studiohdr_t *m_pStudioHeader; float m_flGaitMovement; -int g_iBackFaceCull; int g_nTopColor, g_nBottomColor; // remap colors int g_nFaceFlags, g_nForceFaceFlags; @@ -1836,7 +1835,7 @@ sets true for enable backculling (for left-hand viewmodel) */ void R_StudioSetCullState( int iCull ) { - g_iBackFaceCull = iCull; + // This function intentionally does nothing } /* @@ -3443,7 +3442,7 @@ void R_DrawViewModel( void ) RI.currentmodel = RI.currententity->model; // backface culling for left-handed weapons - if( R_AllowFlipViewModel( RI.currententity ) || g_iBackFaceCull ) + if( R_AllowFlipViewModel( RI.currententity )) { tr.fFlipViewModel = true; //pglFrontFace( GL_CW ); @@ -3465,7 +3464,7 @@ void R_DrawViewModel( void ) s_ziscale = (float)0x8000 * (float)0x10000; // backface culling for left-handed weapons - if( R_AllowFlipViewModel( RI.currententity ) || g_iBackFaceCull ) + if( R_AllowFlipViewModel( RI.currententity )) { tr.fFlipViewModel = false; //pglFrontFace( GL_CCW );