Re: [Mesa-dev] [PATCH] mesa: Add condition in glGetTexImage for zero size textures

2012-01-17 Thread Anuj Phogat
On Tue 17 Jan 2012 02:54:41 PM PST, Brian Paul wrote: > On 01/17/2012 02:03 PM, Anuj Phogat wrote: >> TestMipMaps() function in src/OGLconform/textureNPOT.c calls >> glTexImage2D() >> with width = 0. Texture with zero size skips miptree allocation due to a >> condition in function _mesa_store_texim

Re: [Mesa-dev] [PATCH] mesa: Add condition in glGetTexImage for zero size textures

2012-01-17 Thread Brian Paul
On 01/17/2012 02:03 PM, Anuj Phogat wrote: TestMipMaps() function in src/OGLconform/textureNPOT.c calls glTexImage2D() with width = 0. Texture with zero size skips miptree allocation due to a condition in function _mesa_store_teximage3d(). While calling glGetTexImage() it results in assertion fai

[Mesa-dev] [PATCH] mesa: Add condition in glGetTexImage for zero size textures

2012-01-17 Thread Anuj Phogat
TestMipMaps() function in src/OGLconform/textureNPOT.c calls glTexImage2D() with width = 0. Texture with zero size skips miptree allocation due to a condition in function _mesa_store_teximage3d(). While calling glGetTexImage() it results in assertion failure in intel_map_texture_image() due to null

[Mesa-dev] [PATCH] mesa: Add condition in glGetTexImage for zero size textures

2012-01-17 Thread Anuj Phogat
TestMipMaps() function in src/OGLconform/textureNPOT.c calls glTexImage2D() with width = 0. Texture with zero size skips miptree allocation due to a condition in function _mesa_store_teximage3d(). While calling glGetTexImage() it results in assertion failure in intel_map_texture_image() due to null

Re: [Mesa-dev] [PATCH] mesa: Add condition in glGetTexImage for zero size textures

2012-01-17 Thread Brian Paul
On 01/16/2012 05:40 PM, Anuj Phogat wrote: TestMipMaps() function in src/OGLconform/textureNPOT.c calls glTexImage2D() with width = 0. Texture with zero size skips miptree allocation due to a condition in function _mesa_store_teximage3d(). While calling glGetTexImage() it results in assertion fai

[Mesa-dev] [PATCH] mesa: Add condition in glGetTexImage for zero size textures

2012-01-16 Thread Anuj Phogat
TestMipMaps() function in src/OGLconform/textureNPOT.c calls glTexImage2D() with width = 0. Texture with zero size skips miptree allocation due to a condition in function _mesa_store_teximage3d(). While calling glGetTexImage() it results in assertion failure in intel_map_texture_image() due to null