Skip to content

Commit a1185f3

Browse files
committedMay 23, 2017
glIsEnabled(GL_CULL_FACE) should return the status of culling, not fog.
1 parent c960b24 commit a1185f3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎gl-cap.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
#include "gl.h"
1010
#include "gl-api.h"
1111

12-
#include <malloc.h>
13-
#include <stdio.h>
14-
1512
//===============================================================================//
1613
//== Enable Bit Flags ==//
1714

@@ -128,7 +125,7 @@ GLboolean APIENTRY glIsEnabled(GLenum cap) {
128125
return _glKosEnabledScissorTest() ? GL_TRUE : GL_FALSE;
129126

130127
case GL_CULL_FACE:
131-
return _glKosEnabledFog() ? GL_TRUE : GL_FALSE;
128+
return _glKosEnabledCulling() ? GL_TRUE : GL_FALSE;
132129

133130
case GL_FOG:
134131
return _glKosEnabledFog() ? GL_TRUE : GL_FALSE;

0 commit comments

Comments
 (0)
Please sign in to comment.