Unichrome DRI driver:

Check for texture allocation failure (Bugzilla #1633, Bartlomiej Krol)
Reenabled AGP textures (Thomas Hellstrm)
This commit is contained in:
Thomas Hellström 2004-12-15 21:05:26 +00:00
parent 58f5b91b1b
commit a47c4c37ce

View file

@ -441,14 +441,12 @@ void viaUploadTexImages(viaContextPtr vmesa, viaTextureObjectPtr t)
while (1) {
/*=* John Sheng [2003.5.31] agp tex *=*/
via_alloc_texture(vmesa, t);
/*via_alloc_texture_agp(vmesa, t);*/
if (t->texMem.offset)
if (via_alloc_texture_agp(vmesa, t))
break;
if (via_alloc_texture(vmesa, t))
break;
else
agpFullCount++;
agpFullCount++;
if (vmesa->TexObjList.prev == vmesa->CurrentTexObj[0] ||
vmesa->TexObjList.prev == vmesa->CurrentTexObj[1]) {
#ifdef DEBUG