Check for texture allocation failure (Bugzilla #1633, Bartlomiej Krol)
Reenabled AGP textures (Thomas Hellström)
while (1) {
/*=* John Sheng [2003.5.31] agp tex *=*/
- via_alloc_texture(vmesa, t);
- /*via_alloc_texture_agp(vmesa, t);*/
-
- if (t->texMem.offset)
- break;
- else
- agpFullCount++;
+ if (via_alloc_texture_agp(vmesa, t))
+ break;
+ if (via_alloc_texture(vmesa, t))
+ break;
+ agpFullCount++;
if (vmesa->TexObjList.prev == vmesa->CurrentTexObj[0] ||
vmesa->TexObjList.prev == vmesa->CurrentTexObj[1]) {
#ifdef DEBUG