OpenGL2: Fix face culling.

This commit is contained in:
SmileTheory 2014-11-30 21:50:33 -08:00
parent fd23249357
commit 8c7fedb1fe
2 changed files with 2 additions and 3 deletions

View file

@ -538,9 +538,6 @@ void RB_BeginDrawingView (void) {
backEnd.isHyperspace = qfalse;
}
glState.faceCulling = -1; // force face culling to set next time
glState.faceCullFront = -1; // same as above
// we will only draw a sun if there was sky rendered in this view
backEnd.skyRenderedThisView = qfalse;

View file

@ -946,6 +946,8 @@ void GL_SetDefaultState( void )
//
glState.glStateBits = GLS_DEPTHTEST_DISABLE | GLS_DEPTHMASK_TRUE;
glState.storedGlState = 0;
glState.faceCulling = CT_TWO_SIDED;
glState.faceCullFront = qtrue;
glState.currentProgram = 0;
qglUseProgramObjectARB(0);