mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:04:33 +02:00
Guard _framebufferObject deletion
This commit is contained in:
parent
2ad2b6cd1c
commit
1e7a18e625
1 changed files with 4 additions and 2 deletions
|
@ -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().
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue