From 18d05c8f1a878f173fab77ebebb1ba8e3bc66bc0 Mon Sep 17 00:00:00 2001 From: elsid Date: Tue, 17 May 2022 13:19:39 +0200 Subject: [PATCH] Use proper variable to check in if condition --- components/stereo/multiview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/stereo/multiview.cpp b/components/stereo/multiview.cpp index de48bf6d17..c5963632ce 100644 --- a/components/stereo/multiview.cpp +++ b/components/stereo/multiview.cpp @@ -167,8 +167,8 @@ namespace Stereo return; } - auto targetTextureObject = texture.getTextureObject(contextId); - if (!sourceTextureObject) + osg::Texture::TextureObject* const targetTextureObject = texture.getTextureObject(contextId); + if (targetTextureObject == nullptr) { Log(Debug::Error) << "Texture2DViewSubloadCallback: Texture2D did not have a texture object"; return;