[965] Bug 14314: assertion failure with with !AIGLX and depth=24 visual.

This commit is contained in:
Eric Anholt
2008-02-05 11:00:04 -08:00
parent d14d36f9cc
commit c0e026c809
+4 -1
View File
@@ -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;