projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b492f0a
)
Fixed the ever-elusive crash when using lightmaps: Discard all lightmap requests...
author
Christoph Sommer
<mail@christoph-sommer.de>
Tue, 26 Feb 2008 21:28:33 +0000
(21:28 +0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Tue, 26 Feb 2008 21:28:33 +0000
(21:28 +0000)
SVN-Revision: 5356
src/video/drawing_context.cpp
patch
|
blob
|
history
diff --git
a/src/video/drawing_context.cpp
b/src/video/drawing_context.cpp
index
02712fd
..
62c6ee3
100644
(file)
--- 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