diff options
author | Brian Paul <[email protected]> | 2006-11-15 21:38:26 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-11-15 21:38:26 +0000 |
commit | 82a9ba92b4d50dec49c8301a4da53cb2b10fbcf9 (patch) | |
tree | f266d2adc81ad759c83051b05ca327693e783015 /src | |
parent | 7c279f4dd7cd9b15c7eca284fb333fada4e74be4 (diff) |
improved error mesages
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/shaderobjects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/shaderobjects.c b/src/mesa/shader/shaderobjects.c index c7a1cec48e2..da4d5c84721 100644 --- a/src/mesa/shader/shaderobjects.c +++ b/src/mesa/shader/shaderobjects.c @@ -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; } |