Guard _framebufferObject deletion

This commit is contained in:
David Rowe 2014-07-08 21:02:32 -07:00
parent 2ad2b6cd1c
commit 1e7a18e625

View file

@ -999,8 +999,10 @@ void ApplicationOverlay::renderTexturedHemisphere() {
}
void ApplicationOverlay::resize() {
delete _framebufferObject;
_framebufferObject = NULL;
if (_framebufferObject != NULL) {
delete _framebufferObject;
_framebufferObject = NULL;
}
// _framebufferObject is recreated at the correct size the next time it is accessed via getFramebufferObject().
}