i965: in set_read_rb_tex_image() check _mesa_meta_bind_rb_as_tex_image() did succeed
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Wed, 28 May 2014 10:28:58 +0000 (13:28 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 23 Sep 2014 07:25:02 +0000 (10:25 +0300)
commita82b29d52627c0b0a35efa437c4d81aaaafbbe0c
tree08119b9b728e23e0a9809b97cf4fc7bc82dbb6b1
parent5a6ec26aec6c3a16df18270ec6cbc7e9fd3757cf
i965: in set_read_rb_tex_image() check _mesa_meta_bind_rb_as_tex_image() did succeed

Check if _mesa_meta_bind_rb_as_tex_image() did give the texture.
If no texture was given there is already either
GL_INVALID_VALUE or GL_OUT_OF_MEMORY error set in context.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/common/meta_blit.c
src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c