Correct GLboolean handling for glColorMask and glSampleCoverage
TRAC #11597
Signed-off-by: Shannon Woods
Signed-off-bY: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@294 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Context.cpp b/src/libGLESv2/Context.cpp
index 10213da..a10615f 100644
--- a/src/libGLESv2/Context.cpp
+++ b/src/libGLESv2/Context.cpp
@@ -78,7 +78,7 @@
mState.sampleAlphaToCoverage = false;
mState.sampleCoverage = false;
mState.sampleCoverageValue = 1.0f;
- mState.sampleCoverageInvert = GL_FALSE;
+ mState.sampleCoverageInvert = false;
mState.scissorTest = false;
mState.dither = true;
mState.generateMipmapHint = GL_DONT_CARE;
@@ -571,7 +571,7 @@
return mState.sampleCoverage;
}
-void Context::setSampleCoverageParams(GLclampf value, GLboolean invert)
+void Context::setSampleCoverageParams(GLclampf value, bool invert)
{
if (mState.sampleCoverageValue != value ||
mState.sampleCoverageInvert != invert)