some cleaner code

This commit is contained in:
Velaron 2023-08-30 11:02:49 +03:00 committed by Alibek Omarov
parent f3949474b9
commit df921d8664
1 changed files with 5 additions and 3 deletions

View File

@ -2340,15 +2340,17 @@ static void R_StudioDrawPoints( void )
// NOTE: rewind normals at start
pstudionorms = (vec3_t *)((byte *)m_pStudioHeader + m_pSubModel->normindex);
tr.fFlipViewModel = false;
GL_Cull( GL_FRONT );
// backface culling for left-handed weapons
if( R_AllowFlipViewModel( RI.currententity ))
{
tr.fFlipViewModel = true;
GL_Cull( GL_NONE );
}
else
{
tr.fFlipViewModel = false;
GL_Cull( GL_FRONT );
}
for( j = 0; j < m_pSubModel->nummesh; j++ )
{