From 4967684276df2b7fe4c948451edd49e558328dca Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Tue, 26 Feb 2008 21:28:33 +0000 Subject: [PATCH] Fixed the ever-elusive crash when using lightmaps: Discard all lightmap requests even if lightmap is (currently!) not drawn SVN-Revision: 5356 --- src/video/drawing_context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.11.0