From: Christoph Sommer Date: Tue, 26 Feb 2008 21:28:33 +0000 (+0000) Subject: Fixed the ever-elusive crash when using lightmaps: Discard all lightmap requests... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4967684276df2b7fe4c948451edd49e558328dca;p=supertux.git Fixed the ever-elusive crash when using lightmaps: Discard all lightmap requests even if lightmap is (currently!) not drawn SVN-Revision: 5356 --- diff --git a/src/video/drawing_context.cpp b/src/video/drawing_context.cpp index 02712fd10..62c6ee341 100644 --- a/src/video/drawing_context.cpp +++ b/src/video/drawing_context.cpp @@ -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