summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <[email protected]>2012-04-26 16:21:19 +0300
committerKristian Høgsberg <[email protected]>2012-04-30 13:13:34 -0400
commitfc7d224e295c4cb641238c37612409b1174cea12 (patch)
tree9113033230c1a149300d1b5bbb71e192035b743b /src/mesa
parent6c84f2992fee8b866b9f7434c8c26613b67dc2d4 (diff)
intel: properly return the image format on intel_query_image
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel/intel_screen.c3
1 files changed, 2 insertions, 1 deletions
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;
}