i965: add missing init for region->width
authorBrian Paul <brianp@vmware.com>
Thu, 26 Feb 2009 21:02:52 +0000 (14:02 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 27 Feb 2009 01:48:35 +0000 (18:48 -0700)
This doesn't seem to really effect anything but seeing width=0 in drawing
regions was confusing.

src/mesa/drivers/dri/intel/intel_regions.c

index 749920502a250c52a35ecd2ab7b3479c76e0c75a..0aa5b8c02c904a2b31c7ea51b49357db9a6dabd4 100644 (file)
@@ -466,7 +466,8 @@ intel_recreate_static(struct intel_context *intel,
    else
       region->cpp = intel->ctx.Visual.rgbBits / 8;
    region->pitch = intelScreen->pitch;
-   region->height = intelScreen->height;     /* needed? */
+   region->width = intelScreen->width;
+   region->height = intelScreen->height;
 
    if (region->buffer != NULL) {
       dri_bo_unreference(region->buffer);