mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
OpenGL2: Fix face culling.
This commit is contained in:
parent
fd23249357
commit
8c7fedb1fe
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue