glIsEnabled(GL_CULL_FACE) should return the status of culling, not fog.
This commit is contained in:
parent
c960b24f07
commit
a1185f3369
5
gl-cap.c
5
gl-cap.c
|
@ -9,9 +9,6 @@
|
||||||
#include "gl.h"
|
#include "gl.h"
|
||||||
#include "gl-api.h"
|
#include "gl-api.h"
|
||||||
|
|
||||||
#include <malloc.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
//===============================================================================//
|
//===============================================================================//
|
||||||
//== Enable Bit Flags ==//
|
//== Enable Bit Flags ==//
|
||||||
|
|
||||||
|
@ -128,7 +125,7 @@ GLboolean APIENTRY glIsEnabled(GLenum cap) {
|
||||||
return _glKosEnabledScissorTest() ? GL_TRUE : GL_FALSE;
|
return _glKosEnabledScissorTest() ? GL_TRUE : GL_FALSE;
|
||||||
|
|
||||||
case GL_CULL_FACE:
|
case GL_CULL_FACE:
|
||||||
return _glKosEnabledFog() ? GL_TRUE : GL_FALSE;
|
return _glKosEnabledCulling() ? GL_TRUE : GL_FALSE;
|
||||||
|
|
||||||
case GL_FOG:
|
case GL_FOG:
|
||||||
return _glKosEnabledFog() ? GL_TRUE : GL_FALSE;
|
return _glKosEnabledFog() ? GL_TRUE : GL_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user