From 5d5870e2e94d43bb09eba9f1bdf3e3ffe6ef9603 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Wed, 2 Oct 2002 23:31:58 +0000 Subject: [PATCH] fix vidmem overestimate --- panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx b/panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx index 0c0c343f18..d0166f3528 100644 --- a/panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx +++ b/panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx @@ -1773,7 +1773,9 @@ find_all_card_memavails(void) { DWORD dwVidMemTotal,dwVidMemFree; dwVidMemTotal=dwVidMemFree=0; ZeroMemory(&ddsGAVMCaps,sizeof(DDSCAPS2)); - ddsGAVMCaps.dwCaps = DDSCAPS_VIDEOMEMORY; //set internally by DX anyway, dont think this any different than 0x0 + + // just want to measure localvidmem, not AGP texmem + ddsGAVMCaps.dwCaps = DDSCAPS_VIDEOMEMORY | DDSCAPS_LOCALVIDMEM; if(FAILED(hr = pDD->GetAvailableVidMem(&ddsGAVMCaps,&dwVidMemTotal,&dwVidMemFree))) { wdxdisplay_cat.error() << "GetAvailableVidMem failed for device #"<< pDX7DeviceID->szDescription<< D3DERRORSTRING(hr); // goto skip_device;