From c0e026c8090954ddb629a01cc1a93c61b2fc8298 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 5 Feb 2008 11:00:04 -0800 Subject: [PATCH] [965] Bug 14314: assertion failure with with !AIGLX and depth=24 visual. --- src/mesa/drivers/dri/intel/intel_regions.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.30.2