mesa/src
Kenneth Graunke 63396ce4c0 mesa: Add explicit target checking to Get[Compressed]TexImage().
Previously, they relied on _mesa_max_texture_levels() for texture target
error checking.  This was somewhat dodgy, as _mesa_max_texture_levels()
is called in seven diferent places, not all of which necessarily accept
the same list of targets.

I copied the list of legal targets from _mesa_max_texture_levels() but
removed the proxy targets, as both functions explicitly rejected those
targets.  This changes the order in which we check errors, which could
change whether we return INVALID_VALUE or INVALID_ENUM.  However, it
shouldn't change the list of accepted targets.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-08-17 09:14:36 -07:00
..
egl egl: Allow OpenGL ES 3.0 as a version 2012-08-14 15:41:03 -07:00
gallium llvmpipe: remove polygon stipple assertion 2012-08-17 09:07:49 -06:00
gbm gbm: Fix build for wayland include 2012-07-30 11:58:02 -04:00
getopt
glsl build: Fix out-of-tree generation of builtin_function.cpp 2012-08-14 10:54:39 -07:00
glu glu: fix two Clang warnings 2012-05-21 08:29:23 -06:00
glx glx/dri2: add dri2 prime support. 2012-08-16 10:02:10 +10:00
gtest build: Fix gtest out-of-tree build 2012-08-14 10:54:39 -07:00
mapi glapi: Add GL_ARB_invalidate_subdata 2012-08-14 14:39:33 -07:00
mesa mesa: Add explicit target checking to Get[Compressed]TexImage(). 2012-08-17 09:14:36 -07:00
.gitignore automake: Convert src/Makefile to automake. 2012-06-11 09:28:00 -07:00
Makefile.am automake: Convert src/Makefile to automake. 2012-06-11 09:28:00 -07:00
SConscript scons: add code to generate the various GL API files 2012-05-31 09:40:35 -06:00