Re: [Mesa-dev] [PATCH] mesa: Allow texture with zero width/height to create miptree

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

[Mesa-dev] [PATCH] mesa: Allow texture with zero width/height to create miptree

2012-01-16 Thread Anuj Phogat
TestMipMaps() function in src/OGLconform/textureNPOT.c calls glTexImage2D() with width = 0. Texture with zero image width 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