Enable face culling and depth testing.

I spent way too long trying to figure out why triangle order wasn't making
any difference... :P
This commit is contained in:
Bill Currie 2012-01-03 18:08:01 +09:00
parent 1437cbec91
commit 21c7b84379

View file

@ -47,6 +47,7 @@ static __attribute__ ((used)) const char rcsid[] = "$Id$";
#include "QF/skin.h" #include "QF/skin.h"
#include "QF/sys.h" #include "QF/sys.h"
#include "QF/GLSL/defines.h"
#include "QF/GLSL/funcs.h" #include "QF/GLSL/funcs.h"
#include "QF/GLSL/qf_alias.h" #include "QF/GLSL/qf_alias.h"
#include "QF/GLSL/qf_textures.h" #include "QF/GLSL/qf_textures.h"
@ -151,6 +152,9 @@ R_SetupView (void)
Mat4Identity (mat); Mat4Identity (mat);
VectorNegate (r_refdef.vieworg, mat + 12); VectorNegate (r_refdef.vieworg, mat + 12);
Mat4Mult (glsl_view, mat, glsl_view); Mat4Mult (glsl_view, mat, glsl_view);
qfglEnable (GL_CULL_FACE);
qfglEnable (GL_DEPTH_TEST);
} }
static void static void