- added message about missing texture for material definition

https://forum.zdoom.org/viewtopic.php?t=64234
This commit is contained in:
alexey.lysiuk 2019-04-11 14:48:45 +03:00
parent 4319984e74
commit 8bf2683b4a

View file

@ -1210,6 +1210,11 @@ class GLDefsParser
FTextureID no = TexMan.CheckForTexture(sc.String, type, FTextureManager::TEXMAN_TryAny | FTextureManager::TEXMAN_Overridable);
FTexture *tex = TexMan.GetTexture(no);
if (tex == nullptr)
{
sc.ScriptMessage("Material definition refers nonexistent texture '%s'\n", sc.String);
}
sc.MustGetToken('{');
while (!sc.CheckToken('}'))
{