Fix for XV memory allocation: Also use tiled area for allocation even if it

hasn't been used before.
This commit is contained in:
Egbert Eich 2004-08-27 21:44:54 +00:00
parent 971755765d
commit 89d7027638

View File

@ -1095,12 +1095,10 @@ localQueryLargestOffscreenLinear(
*size = 0;
if (!offman->LinearAreas) return FALSE;
pLink = offman->LinearAreas;
pLinkRet = pLink;
if (!pLink->area) {
if (pLink && !pLink->area) {
pLinkRet = pLink;
while (pLink) {
if (pLink->free) {
if (pLink->linear.size > pLinkRet->linear.size)