From df921d866422fa9e7c4bf616d9b7878598d3cf39 Mon Sep 17 00:00:00 2001 From: Velaron Date: Wed, 30 Aug 2023 11:02:49 +0300 Subject: [PATCH] some cleaner code --- ref/gl/gl_studio.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ref/gl/gl_studio.c b/ref/gl/gl_studio.c index 7b14aee7..3329b447 100644 --- a/ref/gl/gl_studio.c +++ b/ref/gl/gl_studio.c @@ -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++ ) {