mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 17:40:11 +01:00
Unichrome DRI driver:
Check for texture allocation failure (Bugzilla #1633, Bartlomiej Krol) Reenabled AGP textures (Thomas Hellstrm)
This commit is contained in:
parent
58f5b91b1b
commit
a47c4c37ce
1 changed files with 5 additions and 7 deletions
|
|
@ -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)
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue