Commit 4d3efedb by Alexis Hetu Committed by Alexis Hétu

glGetString fix

glGetString wasn't returning es3 specific extensions. Change-Id: Ief89eb448b3e821bfb7919ece97c03976569060c Reviewed-on: https://swiftshader-review.googlesource.com/10954Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 506cc5e0
...@@ -4370,6 +4370,14 @@ const GLubyte *Context::getExtensions(GLuint index, GLuint *numExt) const ...@@ -4370,6 +4370,14 @@ const GLubyte *Context::getExtensions(GLuint index, GLuint *numExt) const
{ {
extensionsCat += std::string(extension) + " "; extensionsCat += std::string(extension) + " ";
} }
if(clientVersion >= 3)
{
for(const char *extension : es3extensions)
{
extensionsCat += std::string(extension) + " ";
}
}
} }
return (const GLubyte*)extensionsCat.c_str(); return (const GLubyte*)extensionsCat.c_str();
......
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