summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-03-13 11:43:44 -0600
committerBrian Paul <[email protected]>2015-03-18 09:01:50 -0600
commit4bdbb588a9d385509f9168e38bfdb76952ba469c (patch)
tree15bedfe72eeb0c233fd236ee3de6c88f5f7fa73c /src/mesa/main/context.h
parent201e36e77d6ca616f75f14d5f1c31f0062ae4366 (diff)
mesa: reimplement dispatch table no-op function handling
Use the new _glapi_new_nop_table() and _glapi_set_nop_handler() to improve how we handle calling no-op GL functions. If there's a current context for the calling thread, generate a GL_INVALID_OPERATION error. This will happen if the app calls an unimplemented extension function or it calls an illegal function between glBegin/glEnd. If there's no current context, print an error to stdout if it's a debug build. The dispatch_sanity.cpp file has some previous checks removed since the _mesa_generic_nop() function no longer exists. This fixes the piglit gl-1.0-dlist-begin-end and gl-1.0-beginend-coverage tests on Windows. Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r--src/mesa/main/context.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index d5650877ed0..1cd89a84af6 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -175,9 +175,6 @@ _mesa_finish(struct gl_context *ctx);
extern void
_mesa_flush(struct gl_context *ctx);
-extern int
-_mesa_generic_nop(void);
-
extern void GLAPIENTRY
_mesa_Finish( void );