Implemented querying GL_BLEND_COLOR

TRAC #12039 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@192 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent c103b60c
......@@ -848,6 +848,12 @@ bool Context::getFloatv(GLenum pname, GLfloat *params)
params[2] = colorClearValue.blue;
params[3] = colorClearValue.alpha;
break;
case GL_BLEND_COLOR:
params[0] = blendColor.red;
params[1] = blendColor.green;
params[2] = blendColor.blue;
params[3] = blendColor.alpha;
break;
default:
return false;
}
......@@ -1154,6 +1160,7 @@ bool Context::getQueryParameterInfo(GLenum pname, GLenum *type, unsigned int *nu
}
break;
case GL_COLOR_CLEAR_VALUE:
case GL_BLEND_COLOR:
{
*type = GL_FLOAT;
*numParams = 4;
......
......@@ -2372,7 +2372,7 @@ void __stdcall glGetIntegerv(GLenum pname, GLint* params)
for (unsigned int i = 0; i < numParams; ++i)
{
if (pname == GL_DEPTH_RANGE || pname == GL_COLOR_CLEAR_VALUE || pname == GL_DEPTH_CLEAR_VALUE)
if (pname == GL_DEPTH_RANGE || pname == GL_COLOR_CLEAR_VALUE || pname == GL_DEPTH_CLEAR_VALUE || pname == GL_BLEND_COLOR)
{
params[i] = (GLint)(((GLfloat)(0xFFFFFFFF) * floatParams[i] - 1.0f) / 2.0f);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment