intel: properly return the image format on intel_query_image
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 26 Apr 2012 13:21:19 +0000 (16:21 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 30 Apr 2012 17:13:34 +0000 (13:13 -0400)
src/mesa/drivers/dri/intel/intel_screen.c

index e823792ff93252ede67ab2071c3781fdfc5a2b57..ac21e96c6536de646ee793fd0226242c8f016059 100644 (file)
@@ -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;
    }