Fixed the ever-elusive crash when using lightmaps: Discard all lightmap requests...
authorChristoph Sommer <mail@christoph-sommer.de>
Tue, 26 Feb 2008 21:28:33 +0000 (21:28 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Tue, 26 Feb 2008 21:28:33 +0000 (21:28 +0000)
SVN-Revision: 5356

src/video/drawing_context.cpp

index 02712fd..62c6ee3 100644 (file)
@@ -303,8 +303,10 @@ DrawingContext::do_drawing()
     handle_drawing_requests(lightmap_requests);
     lightmap->end_draw();
   }
+  lightmap_requests.clear();
 
   handle_drawing_requests(drawing_requests);
+  drawing_requests.clear();
   if(use_lightmap) {
     lightmap->do_draw();
   }
@@ -396,7 +398,6 @@ DrawingContext::handle_drawing_requests(DrawingRequests& requests)
         break;
     }
   }
-  requests.clear();
 }
 
 void