The map bits per pixel must come from the drawable, not the visible screen.

This commit is contained in:
Eric Anholt 2006-07-19 15:57:09 -04:00
parent 449e4be503
commit 4e409ea441
1 changed files with 2 additions and 2 deletions

View File

@ -260,9 +260,9 @@ I915TextureSetup(PicturePtr pPict, PixmapPtr pPix, int unit)
{
CARD32 ms3;
if (pI830->cpp == 1)
if (pPix->drawable.bitsPerPixel == 8)
format |= MAPSURF_8BIT;
else if (pI830->cpp == 2)
else if (pPix->drawable.bitsPerPixel == 16)
format |= MAPSURF_16BIT;
else
format |= MAPSURF_32BIT;