A missing & was causing an uninitialized
parameter issue and a missing return in
glGetUniformBlockIndex, in the case where
the context is NULL, were causing warnings.
Change-Id: Ifb40583c6d08d185d2e60f96066f1436398318ac
Reviewed-on: https://swiftshader-review.googlesource.com/3436
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
return map;\r
}\r
\r
-static bool GetStorageType(GLenum internalformat, GLenum type)\r
+static bool GetStorageType(GLenum internalformat, GLenum& type)\r
{\r
static const FormatMapStorage formatMap = BuildFormatMapStorage2D();\r
FormatMapStorage::const_iterator iter = formatMap.find(internalformat);\r
\r
return programObject->getUniformBlockIndex(uniformBlockName);\r
}\r
+\r
+ return GL_INVALID_INDEX;\r
}\r
\r
GL_APICALL void GL_APIENTRY glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params)\r