am c559f761: Merge "GLES2 translator: fix glUseProgram error"
* commit 'c559f7612f32b0ae7a1ae22127619e9a4698ab72': 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