Mesa (master): i965: add missing init for region->width
Brian Paul
brianp at kemper.freedesktop.org
Fri Feb 27 01:51:04 UTC 2009
Module: Mesa
Branch: master
Commit: ecdf3ce436c004365c4d3c468bf1f9ef9138853e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecdf3ce436c004365c4d3c468bf1f9ef9138853e
Author: Brian Paul <brianp at vmware.com>
Date: Thu Feb 26 14:02:52 2009 -0700
i965: add missing init for region->width
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 | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_regions.c b/src/mesa/drivers/dri/intel/intel_regions.c
index 7499205..0aa5b8c 100644
--- a/src/mesa/drivers/dri/intel/intel_regions.c
+++ b/src/mesa/drivers/dri/intel/intel_regions.c
@@ -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);
More information about the mesa-commit
mailing list