Browse Source

compile on MSVC7

David Rose 21 years ago
parent
commit
bef7f8e270
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/display/graphicsOutput.cxx

+ 2 - 2
panda/src/display/graphicsOutput.cxx

@@ -216,9 +216,9 @@ remove_display_region(DisplayRegion *display_region) {
 
   nassertr(display_region != _default_display_region, false);
 
+  PT(DisplayRegion) drp = display_region;
   TotalDisplayRegions::iterator dri =
-    find(_total_display_regions.begin(), _total_display_regions.end(),
-         display_region);
+    find(_total_display_regions.begin(), _total_display_regions.end(), drp);
   if (dri != _total_display_regions.end()) {
     display_region->_window = NULL;
     _total_display_regions.erase(dri);