Commit d8d69fde authored by Rinnegatamante's avatar Rinnegatamante
Browse files

Enabled portals code, made r_noportals editable.

parent 6f36728e
......@@ -458,12 +458,10 @@ void RB_BeginDrawingView (void) {
plane2[3] = DotProduct (plane, backEnd.viewParms.or.origin) - plane[3];
qglLoadMatrixf( s_flipMatrix );
#ifndef __PSP2__
qglClipPlane (GL_CLIP_PLANE0, plane2);
glClipPlane (GL_CLIP_PLANE0, plane2);
qglEnable (GL_CLIP_PLANE0);
} else {
qglDisable (GL_CLIP_PLANE0);
#endif
}
}
......@@ -685,9 +683,8 @@ void RB_SetGL2D (void) {
GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA );
GL_Cull( CT_TWO_SIDED );
#ifndef __PSP2__
qglDisable( GL_CLIP_PLANE0 );
#endif
// set time for 2D shaders
backEnd.refdef.time = ri.Milliseconds();
backEnd.refdef.floatTime = backEnd.refdef.time * 0.001;
......
......@@ -514,9 +514,7 @@ void RB_RenderFlares (void) {
}
if ( backEnd.viewParms.isPortal ) {
#ifndef __PSP2__
qglDisable (GL_CLIP_PLANE0);
#endif
}
qglPushMatrix();
......
......@@ -1160,7 +1160,7 @@ void R_Register( void )
r_offsetUnits = ri.Cvar_Get( "r_offsetunits", "-2", CVAR_CHEAT );
r_drawBuffer = ri.Cvar_Get( "r_drawBuffer", "GL_BACK", CVAR_CHEAT );
r_lockpvs = ri.Cvar_Get ("r_lockpvs", "0", CVAR_CHEAT);
r_noportals = ri.Cvar_Get ("r_noportals", "1", CVAR_CHEAT);
r_noportals = ri.Cvar_Get ("r_noportals", "1", CVAR_ARCHIVE);
r_shadows = ri.Cvar_Get( "cg_shadows", "1", 0 );
r_marksOnTriangleMeshes = ri.Cvar_Get("r_marksOnTriangleMeshes", "0", CVAR_ARCHIVE);
......
......@@ -228,7 +228,7 @@ void RB_ShadowFinish( void ) {
qglEnable( GL_STENCIL_TEST );
qglStencilFunc( GL_NOTEQUAL, 0, 255 );
//->qglDisable (GL_CLIP_PLANE0);
qglDisable (GL_CLIP_PLANE0);
GL_Cull( CT_TWO_SIDED );
GL_Bind( tr.whiteImage );
......
......@@ -1161,7 +1161,7 @@ Draws x/y/z lines from the origin for orientation debugging
static void RB_SurfaceAxis( void ) {
GL_Bind( tr.whiteImage );
GL_State( GLS_DEFAULT );
//->qglLineWidth( 3 );
glLineWidth( 3 );
float clrs[] = {
1, 0, 0, 0,
1, 0, 0, 0,
......@@ -1183,7 +1183,7 @@ static void RB_SurfaceAxis( void ) {
vglColorPointer(4, GL_FLOAT, 0, 6, clrs);
vglDrawObjects(GL_LINES, 6, GL_TRUE);
glDisableClientState(GL_COLOR_ARRAY);
//->qglLineWidth( 1 );
glLineWidth( 1 );
}
//===========================================================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment