mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:24:36 +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() {
|
void ApplicationOverlay::resize() {
|
||||||
delete _framebufferObject;
|
if (_framebufferObject != NULL) {
|
||||||
_framebufferObject = NULL;
|
delete _framebufferObject;
|
||||||
|
_framebufferObject = NULL;
|
||||||
|
}
|
||||||
// _framebufferObject is recreated at the correct size the next time it is accessed via getFramebufferObject().
|
// _framebufferObject is recreated at the correct size the next time it is accessed via getFramebufferObject().
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue