diff options
author | Jordan Justen <[email protected]> | 2012-07-16 15:41:26 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-07-24 11:50:35 -0700 |
commit | 01168df4d999f84105928d69fdd3eeed6baeeab4 (patch) | |
tree | e22f953978a3a07ce14e0d545b088f92682483b8 /src/mesa/main/context.c | |
parent | 1f9239ec8d67c3e8ee64e6f5306499b6d97ea136 (diff) |
mesa context: generate an error for uninstalled context functions
For 'non-legacy' contexts we will want to generate an error
if an uninstalled function is called.
The effect of this change will be that we can avoid installing
legacy functions, and they will then generate an error as
needed for deprecated functions in GL >= 3.1.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 1546c886f8b..41550f990a4 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -842,7 +842,10 @@ update_default_objects(struct gl_context *ctx) static int generic_nop(void) { - _mesa_warning(NULL, "User called no-op dispatch function (an unsupported extension function?)"); + GET_CURRENT_CONTEXT(ctx); + _mesa_error(ctx, GL_INVALID_OPERATION, + "unsupported function called " + "(unsupported extension or deprecated function?)"); return 0; } |