Implements support for IsEnabled
TRAC #11750
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@124 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Context.cpp b/src/libGLESv2/Context.cpp
index 18335bc..aa39bb6 100644
--- a/src/libGLESv2/Context.cpp
+++ b/src/libGLESv2/Context.cpp
@@ -796,6 +796,15 @@
params[2] = colorMaskBlue;
params[3] = colorMaskAlpha;
break;
+ case GL_CULL_FACE: *params = cullFace;
+ case GL_POLYGON_OFFSET_FILL: *params = polygonOffsetFill;
+ case GL_SAMPLE_ALPHA_TO_COVERAGE: *params = sampleAlphaToCoverage;
+ case GL_SAMPLE_COVERAGE: *params = sampleCoverage;
+ case GL_SCISSOR_TEST: *params = scissorTest;
+ case GL_STENCIL_TEST: *params = stencilTest;
+ case GL_DEPTH_TEST: *params = depthTest;
+ case GL_BLEND: *params = blend;
+ case GL_DITHER: *params = dither;
default:
return false;
}
@@ -1101,6 +1110,15 @@
case GL_SHADER_COMPILER:
case GL_SAMPLE_COVERAGE_INVERT:
case GL_DEPTH_WRITEMASK:
+ case GL_CULL_FACE: // CULL_FACE through DITHER are natural to IsEnabled,
+ case GL_POLYGON_OFFSET_FILL: // but can be retrieved through the Get{Type}v queries.
+ case GL_SAMPLE_ALPHA_TO_COVERAGE: // For this purpose, they are treated here as bool-natural
+ case GL_SAMPLE_COVERAGE:
+ case GL_SCISSOR_TEST:
+ case GL_STENCIL_TEST:
+ case GL_DEPTH_TEST:
+ case GL_BLEND:
+ case GL_DITHER:
{
*type = GL_BOOL;
*numParams = 1;