mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 05:31:29 +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;
|
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
|
// we will only draw a sun if there was sky rendered in this view
|
||||||
backEnd.skyRenderedThisView = qfalse;
|
backEnd.skyRenderedThisView = qfalse;
|
||||||
|
|
||||||
|
|
|
@ -946,6 +946,8 @@ void GL_SetDefaultState( void )
|
||||||
//
|
//
|
||||||
glState.glStateBits = GLS_DEPTHTEST_DISABLE | GLS_DEPTHMASK_TRUE;
|
glState.glStateBits = GLS_DEPTHTEST_DISABLE | GLS_DEPTHMASK_TRUE;
|
||||||
glState.storedGlState = 0;
|
glState.storedGlState = 0;
|
||||||
|
glState.faceCulling = CT_TWO_SIDED;
|
||||||
|
glState.faceCullFront = qtrue;
|
||||||
|
|
||||||
glState.currentProgram = 0;
|
glState.currentProgram = 0;
|
||||||
qglUseProgramObjectARB(0);
|
qglUseProgramObjectARB(0);
|
||||||
|
|
Loading…
Reference in a new issue