mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-14 00:01:20 +00:00
Fixes a few problems in Xgl
This commit is contained in:
parent
35bd81dfec
commit
046bdb1716
5 changed files with 16 additions and 24 deletions
|
|
@ -97,11 +97,17 @@ xglPixmapSurfaceInit (PixmapPtr pPixmap,
|
|||
|
||||
if (width && height)
|
||||
{
|
||||
if (features & GLITZ_FEATURE_TEXTURE_BORDER_CLAMP_MASK)
|
||||
if (width == 1 && height == 1)
|
||||
{
|
||||
pPixmapPriv->acceleratedTile = TRUE;
|
||||
}
|
||||
else if (features & GLITZ_FEATURE_TEXTURE_BORDER_CLAMP_MASK)
|
||||
{
|
||||
if ((features & GLITZ_FEATURE_TEXTURE_NON_POWER_OF_TWO_MASK) ||
|
||||
(POWER_OF_TWO (width) && POWER_OF_TWO (height)))
|
||||
pPixmapPriv->acceleratedTile = TRUE;
|
||||
|
||||
}
|
||||
|
||||
pPixmapPriv->target = xglPixmapTargetOut;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue