Re: [Mesa-dev] [PATCH] st/mesa: check for out-of-memory in st_DrawPixels()

2015-10-16 Thread Jose Fonseca
On 16/10/15 23:24, Brian Paul wrote: Before, if make_texture() or st_create_texture_sampler_view() failed we silently no-op'd the glDrawPixels. Now, set GL_OUT_OF_MEMORY. This also allows us to un-nest a bunch of code. v2: also check if allocation of sv[1] fails, per Jose. --- src/mesa/state_

[Mesa-dev] [PATCH] st/mesa: check for out-of-memory in st_DrawPixels()

2015-10-16 Thread Brian Paul
Before, if make_texture() or st_create_texture_sampler_view() failed we silently no-op'd the glDrawPixels. Now, set GL_OUT_OF_MEMORY. This also allows us to un-nest a bunch of code. v2: also check if allocation of sv[1] fails, per Jose. --- src/mesa/state_tracker/st_cb_drawpixels.c | 76