1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 22:45:34 +00:00

Fix assertion failure with NiTextureEffect missing source texture

This commit is contained in:
MiroslavR 2016-07-16 18:59:18 +02:00
parent cff37cdd08
commit 721fa28c1e

View file

@ -481,6 +481,12 @@ namespace NifOsg
return; return;
} }
if (textureEffect->texture.empty())
{
std::cerr << "NiTextureEffect missing source texture in " << mFilename << std::endl;
return;
}
osg::ref_ptr<osg::TexGen> texGen (new osg::TexGen); osg::ref_ptr<osg::TexGen> texGen (new osg::TexGen);
switch (textureEffect->coordGenType) switch (textureEffect->coordGenType)
{ {