From: Ander Conselvan de Oliveira Date: Thu, 26 Apr 2012 13:21:19 +0000 (+0300) Subject: intel: properly return the image format on intel_query_image X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc7d224e295c4cb641238c37612409b1174cea12;p=mesa.git intel: properly return the image format on intel_query_image --- diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index e823792ff93..ac21e96c653 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -342,7 +342,8 @@ intel_query_image(__DRIimage *image, int attrib, int *value) case __DRI_IMAGE_ATTRIB_NAME: return intel_region_flink(image->region, (uint32_t *) value); case __DRI_IMAGE_ATTRIB_FORMAT: - return image->dri_format; + *value = image->dri_format; + return true; default: return false; }