Forráskód Böngészése

Handle running out of AGP memory.

aignacio_sf 18 éve
szülő
commit
fbb7a9e998
1 módosított fájl, 2 hozzáadás és 5 törlés
  1. 2 5
      panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx

+ 2 - 5
panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx

@@ -5177,6 +5177,7 @@ check_dx_allocation (HRESULT result, int allocation_size, int attempts)
         break;
         break;
 
 
       case D3DERR_OUTOFVIDEOMEMORY:
       case D3DERR_OUTOFVIDEOMEMORY:
+      case E_OUTOFMEMORY:
         if (_lru) {
         if (_lru) {
           // increase the page out size as the number of attempts increases
           // increase the page out size as the number of attempts increases
           if (_lru -> page_out_lru (allocation_size * attempts)) {
           if (_lru -> page_out_lru (allocation_size * attempts)) {
@@ -5184,11 +5185,7 @@ check_dx_allocation (HRESULT result, int allocation_size, int attempts)
           }
           }
         }
         }
         break;
         break;
-
-      case E_OUTOFMEMORY:
-        // ??? is this case system memory
-        break;
-
+        
       default:
       default:
         break;
         break;
     }
     }