From f2bb220c29d74f18084a76834af1e5e5d6a4dba3 Mon Sep 17 00:00:00 2001 From: ahcorde Date: Tue, 8 Jun 2021 12:43:30 +0200 Subject: [PATCH] Fixed texture Id Signed-off-by: ahcorde --- src/plugins/scene3d/Scene3D.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/scene3d/Scene3D.cc b/src/plugins/scene3d/Scene3D.cc index dece47e7f..43679d02d 100644 --- a/src/plugins/scene3d/Scene3D.cc +++ b/src/plugins/scene3d/Scene3D.cc @@ -137,10 +137,11 @@ void IgnRenderer::Render() this->textureSize.height()); // setting the size should cause the render texture to be rebuilt this->dataPtr->camera->PreRender(); - this->textureId = this->dataPtr->camera->RenderTextureGLId(); this->textureDirty = false; } + this->textureId = this->dataPtr->camera->RenderTextureGLId(); + // view control this->HandleMouseEvent();