mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 10:40:22 +01:00
improved error mesages
This commit is contained in:
parent
7c279f4dd7
commit
82a9ba92b4
1 changed files with 2 additions and 2 deletions
|
|
@ -307,14 +307,14 @@ _mesa_UseProgramObjectARB(GLhandleARB programObj)
|
|||
FLUSH_VERTICES(ctx, _NEW_PROGRAM);
|
||||
|
||||
if (programObj != 0) {
|
||||
GET_PROGRAM(pro, programObj, "glUseProgramObjectARB");
|
||||
GET_PROGRAM(pro, programObj, "glUseProgramObjectARB(program)");
|
||||
|
||||
if (pro == NULL)
|
||||
return;
|
||||
|
||||
if ((**pro).GetLinkStatus(pro) == GL_FALSE) {
|
||||
RELEASE_PROGRAM(pro);
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glUseProgramObjectARB");
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glUseProgramObjectARB(not linked)");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue