From fc7d224e295c4cb641238c37612409b1174cea12 Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Thu, 26 Apr 2012 16:21:19 +0300 Subject: intel: properly return the image format on intel_query_image --- src/mesa/drivers/dri/intel/intel_screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3