Merge branch 'fix_if_condition' into 'master'

Use proper variable to check in if condition

See merge request OpenMW/openmw!1873
pull/3227/head
psi29a 3 years ago
commit 12a8a6b876

@ -167,8 +167,8 @@ namespace Stereo
return; return;
} }
auto targetTextureObject = texture.getTextureObject(contextId); osg::Texture::TextureObject* const targetTextureObject = texture.getTextureObject(contextId);
if (!sourceTextureObject) if (targetTextureObject == nullptr)
{ {
Log(Debug::Error) << "Texture2DViewSubloadCallback: Texture2D did not have a texture object"; Log(Debug::Error) << "Texture2DViewSubloadCallback: Texture2D did not have a texture object";
return; return;

Loading…
Cancel
Save