mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
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:
parent
1437cbec91
commit
21c7b84379
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,7 @@ static __attribute__ ((used)) const char rcsid[] = "$Id$";
|
|||
#include "QF/skin.h"
|
||||
#include "QF/sys.h"
|
||||
|
||||
#include "QF/GLSL/defines.h"
|
||||
#include "QF/GLSL/funcs.h"
|
||||
#include "QF/GLSL/qf_alias.h"
|
||||
#include "QF/GLSL/qf_textures.h"
|
||||
|
@ -151,6 +152,9 @@ R_SetupView (void)
|
|||
Mat4Identity (mat);
|
||||
VectorNegate (r_refdef.vieworg, mat + 12);
|
||||
Mat4Mult (glsl_view, mat, glsl_view);
|
||||
|
||||
qfglEnable (GL_CULL_FACE);
|
||||
qfglEnable (GL_DEPTH_TEST);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue