mesa/src
Brian Paul 627b435dfe mesa: new _mesa_error_check_format_and_type() function
This replaces the _mesa_is_legal_format_and_type() function.

According to the spec, some invalid format/type combinations to
glDrawPixels, ReadPixels and glTexImage should generate
GL_INVALID_ENUM but others should generate GL_INVALID_OPERATION.

With the old function we didn't make that distinction and generated
GL_INVALID_ENUM errors instead of GL_INVALID_OPERATION.  The new
function returns one of those errors or GL_NO_ERROR.

This will also let us remove some redundant format/type checks in
follow-on commit.

v2: add more checks for ARB_texture_rgb10_a2ui at the top of
_mesa_error_check_format_and_type() per Ian.

Signed-off-by: Brian Paul <brianp@vmware.com>
2012-02-07 07:42:33 -07:00
..
egl add wayland cflags when building wayland-egl 2012-01-29 16:51:27 +01:00
gallium radeon: only init surface manage on r600 2012-02-07 14:20:09 +00:00
gbm gbm: Add back link flags for udev, dl and glapi 2012-01-26 13:23:25 +01:00
getopt getopt: Make code more portable. 2011-01-12 16:54:21 +00:00
glsl glsl: Add error case for switch() with two default cases. 2012-02-03 11:07:04 +01:00
glu scons: Add Haiku build support 2012-01-17 20:01:14 +00:00
glx Have __glImageSize handle format GL_DEPTH_STENCIL_NV the same way as the server does 2012-02-06 23:00:44 +00:00
mapi mapi/glapi: Never use a generic no-op entry-point on Windows. 2012-02-02 14:45:24 +00:00
mesa mesa: new _mesa_error_check_format_and_type() function 2012-02-07 07:42:33 -07:00
Makefile
SConscript scons: Add Haiku build support 2012-01-17 20:01:14 +00:00