From ddeb0bc30523487bc803fc646360f64357be6971 Mon Sep 17 00:00:00 2001 From: Samir Naik Date: Tue, 14 Jan 2003 00:54:08 +0000 Subject: [PATCH] fix build for opt2 --- panda/src/dxgsg7/dxGraphicsStateGuardian7.cxx | 6 +++--- panda/src/dxgsg8/wdxGraphicsWindow8.cxx | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/panda/src/dxgsg7/dxGraphicsStateGuardian7.cxx b/panda/src/dxgsg7/dxGraphicsStateGuardian7.cxx index 5887243583..a5406459c7 100644 --- a/panda/src/dxgsg7/dxGraphicsStateGuardian7.cxx +++ b/panda/src/dxgsg7/dxGraphicsStateGuardian7.cxx @@ -203,7 +203,7 @@ dbgPrintVidMem(LPDIRECTDRAW7 pDD, LPDDSCAPS2 lpddsCaps,const char *pMsg) { // ddsCaps.dwCaps |= DDSCAPS_VIDEOMEMORY; done internally by DX anyway if(FAILED( hr = pDD->GetAvailableVidMem(&ddsCaps,&dwTotal,&dwFree))) { - wdxdisplay_cat.debug() << "GetAvailableVidMem failed : result = " << ConvD3DErrorToString(hr) << endl; + wdxdisplay7_cat.debug() << "GetAvailableVidMem failed : result = " << ConvD3DErrorToString(hr) << endl; exit(1); } @@ -211,8 +211,8 @@ dbgPrintVidMem(LPDIRECTDRAW7 pDD, LPDDSCAPS2 lpddsCaps,const char *pMsg) { char tmpstr[100],tmpstr2[100]; sprintf(tmpstr,"%.4g",dwTotal/1000000.0); sprintf(tmpstr2,"%.4g",dwFree/1000000.0); - if(wdxdisplay_cat.is_debug()) - wdxdisplay_cat.debug() << "AvailableVidMem before creating "<< pMsg << ",(megs) total: " << tmpstr << " free:" << tmpstr2 <