mesa/src
Brian Paul b53035e10d mesa: fix error handling for dlist image unpacking
When compiling glDrawPixels, glTexImage(), etc. and we're copying
the user's image we need to be careful about GL error checking.
Previously, we were incorrectly generating GL_OUT_OF_MEMORY in
unpack_image() if width <= 0 or height <= 0 or for invalid format/type
values.  We now check those arguments in unpack_image() and return NULL
if there's a bad value.  The command will get compiled with the
arguments as-is and image=NULL.  Later, when the command is executed the
correct errors will be generated.

This issue was reported by Yuanhan Liu <yuanhan.liu@linux.intel.com>

Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
(cherry picked from commit 6fd6efa7bf)
2011-10-24 15:54:30 -07:00
..
driclient
egl wayland-drm: Add copyright notice to protocol 2011-07-27 10:08:01 +02:00
gallium r300g: don't return NULL in resource_from_handle if the resource is too small 2011-10-21 00:31:06 +02:00
gbm Make it possible to use gbm with c++ 2011-07-20 09:02:18 -07:00
getopt getopt: Make code more portable. 2011-01-12 16:54:21 +00:00
glsl glcpp: Add a test for #elif with an undefined macro. 2011-10-14 17:28:45 -07:00
glu sgi: Fix MSVC build. 2011-04-27 19:06:07 +01:00
glut scons: Revamp how to specify targets to build. 2010-11-01 13:30:22 +00:00
glw glw: Mark all extern symbols GLAPI to regain default visibility (#31294) 2011-06-20 12:31:01 -07:00
glx drisw: Remove cargo culting that breaks GLX 1.3 ctors 2011-10-24 13:56:46 -04:00
mapi glapi: Update specs to correctly list FramebufferTextureLayerARB as an alias of FramebufferTextureLayerEXT 2011-06-20 16:54:58 -07:00
mesa mesa: fix error handling for dlist image unpacking 2011-10-24 15:54:30 -07:00
Makefile
SConscript scons: Build glu. 2011-04-23 13:16:03 +01:00