mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
i965: add missing init for region->width
This doesn't seem to really effect anything but seeing width=0 in drawing regions was confusing.
This commit is contained in:
parent
8ae7e7749b
commit
ecdf3ce436
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue