summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel/intel_regions.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-02-05 11:00:04 -0800
committerEric Anholt <eric@anholt.net>2008-02-05 11:01:14 -0800
commitc0e026c8090954ddb629a01cc1a93c61b2fc8298 (patch)
tree67cf148e83b6392c7fc83a5f8caf319ba7aed0c7 /src/mesa/drivers/dri/intel/intel_regions.c
parentd14d36f9cc5be8b4c827653ee1245be00999357e (diff)
[965] Bug 14314: assertion failure with with !AIGLX and depth=24 visual.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_regions.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_regions.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_regions.c b/src/mesa/drivers/dri/intel/intel_regions.c
index ffd9366522..dcf32d9f84 100644
--- a/src/mesa/drivers/dri/intel/intel_regions.c
+++ b/src/mesa/drivers/dri/intel/intel_regions.c
@@ -400,7 +400,10 @@ intel_recreate_static(struct intel_context *intel,
region->refcount = 1;
}
- region->cpp = intel->ctx.Visual.rgbBits / 8;
+ if (intel->ctx.Visual.rgbBits == 24)
+ region->cpp = 4;
+ else
+ region->cpp = intel->ctx.Visual.rgbBits / 8;
region->pitch = intelScreen->pitch;
region->height = intelScreen->height; /* needed? */
region->tiled = region_desc->tiled;