mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Don't use vector iterator in draw_bins, to allow buffer creation during the draw traversal
This commit is contained in:
parent
6563c82930
commit
38385867ee
@ -1414,9 +1414,9 @@ void GraphicsEngine::
|
||||
draw_bins(const GraphicsEngine::Windows &wlist, Thread *current_thread) {
|
||||
nassertv(wlist.verify_list());
|
||||
|
||||
Windows::const_iterator wi;
|
||||
for (wi = wlist.begin(); wi != wlist.end(); ++wi) {
|
||||
GraphicsOutput *win = (*wi);
|
||||
size_t wlist_size = wlist.size();
|
||||
for (size_t wi = 0; wi < wlist_size; ++wi) {
|
||||
GraphicsOutput *win = wlist[wi];
|
||||
if (win->is_active() && win->get_gsg()->is_active()) {
|
||||
if (win->flip_ready()) {
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user