From a1185f3369895df4b29cd476e4a53e70b53d7a4e Mon Sep 17 00:00:00 2001 From: Lawrence Sebald Date: Tue, 23 May 2017 09:11:52 -0400 Subject: [PATCH] glIsEnabled(GL_CULL_FACE) should return the status of culling, not fog. --- gl-cap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gl-cap.c b/gl-cap.c index af4ac60..d479f99 100644 --- a/gl-cap.c +++ b/gl-cap.c @@ -9,9 +9,6 @@ #include "gl.h" #include "gl-api.h" -#include -#include - //===============================================================================// //== Enable Bit Flags ==// @@ -128,7 +125,7 @@ GLboolean APIENTRY glIsEnabled(GLenum cap) { return _glKosEnabledScissorTest() ? GL_TRUE : GL_FALSE; case GL_CULL_FACE: - return _glKosEnabledFog() ? GL_TRUE : GL_FALSE; + return _glKosEnabledCulling() ? GL_TRUE : GL_FALSE; case GL_FOG: return _glKosEnabledFog() ? GL_TRUE : GL_FALSE;