1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-29 05:11:34 +00:00

Merge pull request #1002 from MiroslavR/nitextureeffect-crash

Fix assertion failure with NiTextureEffect missing source texture
This commit is contained in:
scrawl 2016-07-16 19:26:09 +02:00 committed by GitHub
commit 2ed813d5f3

View file

@ -481,6 +481,12 @@ namespace NifOsg
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);
switch (textureEffect->coordGenType)
{