diff options
author | Eric Anholt <[email protected]> | 2008-02-05 11:00:04 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2008-02-05 11:01:14 -0800 |
commit | c0e026c8090954ddb629a01cc1a93c61b2fc8298 (patch) | |
tree | 67cf148e83b6392c7fc83a5f8caf319ba7aed0c7 /src | |
parent | d14d36f9cc5be8b4c827653ee1245be00999357e (diff) |
[965] Bug 14314: assertion failure with with !AIGLX and depth=24 visual.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_regions.c | 5 |
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 ffd9366522b..dcf32d9f84f 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; |