diff options
-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; |