st/dri: Check get-handle return value in queryImage
authorDaniel Stone <daniels@collabora.com>
Mon, 24 Jul 2017 13:42:56 +0000 (14:42 +0100)
committerDaniel Stone <daniels@collabora.com>
Tue, 25 Jul 2017 17:40:06 +0000 (18:40 +0100)
commitb4a18f13ce7f0e7d0307fb3388819345616752ce
tree41468917d891dcdefc959ef8e9129d07f1f1bf3d
parente6d7937b86d8f3c7e0605741de8721caf991af05
st/dri: Check get-handle return value in queryImage

In the DRIImage queryImage hook, check if resource_get_handle() failed
and return FALSE if so.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/state_trackers/dri/dri2.c