make face culling optional
This commit is contained in:
@ -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