Return 0 as the request size when the pixels parameter is NULL
authorNeil Roberts <neil@linux.intel.com>
Tue, 2 Dec 2008 15:03:01 +0000 (15:03 +0000)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 15 Dec 2008 02:46:17 +0000 (18:46 -0800)
commit1709ab01ef24279c782e420568e9257b4b92b224
treed7aeb26916fbfcb3af6f19601d7ad47b361b977a
parent0f73302d24f4201813da2939742c5bcb6964b3b1
Return 0 as the request size when the pixels parameter is NULL

img_null_flag was being ignored when calculating the size of a request
so a BadLength error gets thrown for glTexImage3D when the pixels
parameter is NULL.

See bug #11003
src/mesa/glapi/glX_proto_size.py