mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 13:20:35 +00:00
Fix assertion failure with NiTextureEffect missing source texture
This commit is contained in:
parent
cff37cdd08
commit
721fa28c1e
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user