make face culling optional
This commit is contained in:
1 parent
6ef3cf1a3a
commit
166ae43981
3 files changed
+13
-1
No files matched your search
@@ -96,7 +96,11 @@ static void finally_use_space_pipeline(void) {
|
||||
if (GLAD_GL_ARB_depth_clamp)
|
||||
glDisable(GL_DEPTH_CLAMP);
|
||||
|
||||
glEnable(GL_CULL_FACE);
|
||||
if (ctx.cull_faces)
|
||||
glEnable(GL_CULL_FACE);
|
||||
else
|
||||
glDisable(GL_CULL_FACE);
|
||||
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
glActiveTexture(GL_TEXTURE0);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
|
||||
Reference in new issue
Block a user