From 981d9a04be0fe26048321bb46129564ca48d8d96 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Wed, 1 Aug 2001 21:19:43 +0000 Subject: [PATCH] fix build break O4 --- panda/src/dxgsg/dxGraphicsStateGuardian.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx index 6276ea87c7..6dc5b426b0 100644 --- a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx +++ b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx @@ -86,7 +86,7 @@ #include // print out simple drawprim stats every few secs -//#define COUNT_DRAWPRIMS +#define COUNT_DRAWPRIMS //#define DISABLE_DECALING #define DISABLE_POLYGON_OFFSET_DECALING @@ -567,7 +567,7 @@ init_dx( LPDIRECTDRAW7 context, //////////////////////////////////////////////////////////////////// void DXGraphicsStateGuardian:: clear(const RenderBuffer &buffer) { - PStatTimer timer(_win->_clear_pcollector); + DO_PSTATS_STUFF(PStatTimer timer(_win->_clear_pcollector)); nassertv(buffer._gsg == this); int buffer_type = buffer._buffer_type; @@ -6035,11 +6035,11 @@ prepare_geom_node(GeomNode *node) { continue; if(dxgsg_cat.is_debug()) { - static bool bPrintedMsg=false; - if(!bPrintedMsg) { - dxgsg_cat.debug() << "linking tristrips together with degenerate tris\n"; - bPrintedMsg=true; - } + static bool bPrintedMsg=false; + if(!bPrintedMsg) { + dxgsg_cat.debug() << "linking tristrips together with degenerate tris\n"; + bPrintedMsg=true; + } } bool bStripReversalNeeded;