1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00

Use proper variable to check in if condition

This commit is contained in:
elsid 2022-05-17 13:19:39 +02:00
parent 2f75acc34e
commit 18d05c8f1a
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -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;