Re: [Mesa-dev] [PATCH] st/mesa: add null pointer check in st_texture_image_map()

2012-03-16 Thread Jose Fonseca
Looks good. Jose - Original Message - > If we failed to allocate a memory resource for the texture we'd crash > when we tried to map it. Now we propogate the NULL back up to the > texstore code and generate GL_OUT_OF_MEMORY. > > Fixes a crash with the upcoming piglit max-texture-size te

[Mesa-dev] [PATCH] st/mesa: add null pointer check in st_texture_image_map()

2012-03-16 Thread Brian Paul
If we failed to allocate a memory resource for the texture we'd crash when we tried to map it. Now we propogate the NULL back up to the texstore code and generate GL_OUT_OF_MEMORY. Fixes a crash with the upcoming piglit max-texture-size test. NOTE: This is a candidate for the 8.0 branch. --- sr