mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
remove unnecessary extra update() calls
This commit is contained in:
parent
85813ac908
commit
89c05244bf
1 changed files with 0 additions and 8 deletions
|
@ -92,16 +92,11 @@ QOpenGLFramebufferObject* ResourceImageItemRenderer::createFramebufferObject(con
|
|||
|
||||
void ResourceImageItemRenderer::render() {
|
||||
auto f = QOpenGLContext::currentContext()->extraFunctions();
|
||||
bool doUpdate = false;
|
||||
// black background
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
if (_fenceSync) {
|
||||
f->glWaitSync(_fenceSync, 0, GL_TIMEOUT_IGNORED);
|
||||
f->glDeleteSync(_fenceSync);
|
||||
_fenceSync = 0;
|
||||
doUpdate = true;
|
||||
}
|
||||
if (_ready) {
|
||||
_fboMutex.lock();
|
||||
|
@ -116,9 +111,6 @@ void ResourceImageItemRenderer::render() {
|
|||
_copyFbo->release();
|
||||
|
||||
_fboMutex.unlock();
|
||||
if (doUpdate) {
|
||||
update();
|
||||
}
|
||||
}
|
||||
glFlush();
|
||||
_window->resetOpenGLState();
|
||||
|
|
Loading…
Reference in a new issue