Commits

Anonymous committed 10ac602

Fix recently introduced assert failure when the scene texture is never traversed. Reported by Timo Schmiade.

Comments (0)

Files changed (1)

src/nodes/SoSceneTexture2.cpp

 void
 SoSceneTexture2P::deleteFrameBufferObjects(const cc_glglue * glue, SoState * state)
 {
-  assert(this->fbodata);
   fbo_data * fbodata = this->fbodata;
+  if (!fbodata) return; // might happen if the scene texture isn't traversed
   
   if (fbodata->fbo_texture) {
     fbodata->fbo_texture->unref(state);