* commit '735b35fb1be6a9a5e63fa0c639ca2eed007f4c71': GLES2 translator: fix glUseProgram error
This commit is contained in:
@@ -1235,6 +1235,7 @@ GL_APICALL void GL_APIENTRY glUseProgram(GLuint program){
|
||||
GET_CTX();
|
||||
if(thrd->shareGroup.Ptr()) {
|
||||
const GLuint globalProgramName = thrd->shareGroup->getGlobalName(SHADER,program);
|
||||
SET_ERROR_IF(program!=0 && globalProgramName==0,GL_INVALID_VALUE);
|
||||
ctx->dispatcher().glUseProgram(globalProgramName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user