diff options
author | Brian Paul <[email protected]> | 2015-03-13 11:43:44 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-03-18 09:01:50 -0600 |
commit | 4bdbb588a9d385509f9168e38bfdb76952ba469c (patch) | |
tree | 15bedfe72eeb0c233fd236ee3de6c88f5f7fa73c /src/mesa/main/textureview.h | |
parent | 201e36e77d6ca616f75f14d5f1c31f0062ae4366 (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/textureview.h')
0 files changed, 0 insertions, 0 deletions