projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ae7e77
)
i965: add missing init for region->width
author
Brian Paul
<brianp@vmware.com>
Thu, 26 Feb 2009 21:02:52 +0000
(14:02 -0700)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_regions.c
b/src/mesa/drivers/dri/intel/intel_regions.c
index 749920502a250c52a35ecd2ab7b3479c76e0c75a..0aa5b8c02c904a2b31c7ea51b49357db9a6dabd4 100644
(file)
--- 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);