bandaid around race condition

This commit is contained in:
David Rose 2011-10-05 19:11:28 +00:00
parent 6854e21423
commit a821755936

View File

@ -1533,7 +1533,9 @@ draw_bins(const GraphicsEngine::Windows &wlist, Thread *current_thread) {
void GraphicsEngine::
draw_bins(GraphicsOutput *win, DisplayRegion *dr, Thread *current_thread) {
GraphicsStateGuardian *gsg = win->get_gsg();
nassertv(gsg != (GraphicsStateGuardian *)NULL);
if (gsg == (GraphicsStateGuardian *)NULL) {
return;
}
PT(CullResult) cull_result = dr->get_cull_result(current_thread);
PT(SceneSetup) scene_setup = dr->get_scene_setup(current_thread);