From fbb7a9e9985e71186a8e8f34144cb8f8718ae5b5 Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Fri, 18 May 2007 01:45:17 +0000 Subject: [PATCH] Handle running out of AGP memory. --- panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx index d5dea48b91..ea65019316 100755 --- a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx +++ b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx @@ -5177,6 +5177,7 @@ check_dx_allocation (HRESULT result, int allocation_size, int attempts) break; case D3DERR_OUTOFVIDEOMEMORY: + case E_OUTOFMEMORY: if (_lru) { // increase the page out size as the number of attempts increases if (_lru -> page_out_lru (allocation_size * attempts)) { @@ -5184,11 +5185,7 @@ check_dx_allocation (HRESULT result, int allocation_size, int attempts) } } break; - - case E_OUTOFMEMORY: - // ??? is this case system memory - break; - + default: break; }