src/glRenderer.cc

changeset 857
e62983881460
parent 856
6bdc03091441
child 859
ebc7a186699c
equal deleted inserted replaced
856:6bdc03091441 857:e62983881460
141 delete currentDocumentData().overlays[i].img; 141 delete currentDocumentData().overlays[i].img;
142 142
143 for (CameraIcon& info : m_cameraIcons) 143 for (CameraIcon& info : m_cameraIcons)
144 delete info.img; 144 delete info.img;
145 145
146 if (messageLog())
147 messageLog()->setRenderer (null);
148
149 m_compiler->setRenderer (null);
146 delete m_compiler; 150 delete m_compiler;
147 delete m_editmode; 151 delete m_editmode;
148 } 152 }
149 153
150 // ============================================================================= 154 // =============================================================================
1128 1132
1129 // ============================================================================= 1133 // =============================================================================
1130 // 1134 //
1131 void GLRenderer::forgetObject (LDObjectPtr obj) 1135 void GLRenderer::forgetObject (LDObjectPtr obj)
1132 { 1136 {
1133 compiler()->dropObject (obj); 1137 if (compiler() != null)
1138 compiler()->dropObject (obj);
1134 } 1139 }
1135 1140
1136 // ============================================================================= 1141 // =============================================================================
1137 // 1142 //
1138 uchar* GLRenderer::getScreencap (int& w, int& h) 1143 uchar* GLRenderer::getScreencap (int& w, int& h)

mercurial