Commit 3053bf0a by Alexis Hetu Committed by Alexis Hétu

Added missing integer query

Recently, ES3 specific getIntegerv queries were removed from ES2. Unfortunately, GL_MAX_COLOR_ATTACHMENTS was moved to the ES3 section, but was still supposed to be in the ES2 section, since the GL_EXT_draw_buffers exposes it. Change-Id: I2272ccf282558e10ee6cfb1be9d124cc59df14fa Reviewed-on: https://swiftshader-review.googlesource.com/9911Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent e745f5a9
......@@ -2096,6 +2096,9 @@ template<typename T> bool Context::getIntegerv(GLenum pname, T *params) const
case GL_MAX_DRAW_BUFFERS:
*params = MAX_DRAW_BUFFERS;
return true;
case GL_MAX_COLOR_ATTACHMENTS: // Note: MAX_COLOR_ATTACHMENTS_EXT added by GL_EXT_draw_buffers
*params = MAX_COLOR_ATTACHMENTS;
return true;
default:
break;
}
......@@ -2128,9 +2131,6 @@ template<typename T> bool Context::getIntegerv(GLenum pname, T *params) const
case GL_MAX_ARRAY_TEXTURE_LAYERS:
*params = IMPLEMENTATION_MAX_TEXTURE_SIZE;
return true;
case GL_MAX_COLOR_ATTACHMENTS: // Note: not supported in OES_framebuffer_object
*params = MAX_COLOR_ATTACHMENTS;
return true;
case GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:
*params = MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS;
return true;
......
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