mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
Merge pull request #1002 from MiroslavR/nitextureeffect-crash
Fix assertion failure with NiTextureEffect missing source texture
This commit is contained in:
commit
2ed813d5f3
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue