Skip to content
Permalink
Browse files

- added message about missing texture for material definition

  • Loading branch information...
alexey-lysiuk committed Apr 11, 2019
1 parent 4319984 commit 8bf2683b4a7141e4b37888ff1d83a1a4bcddd226
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/r_data/gldefs.cpp
@@ -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('}'))
{

0 comments on commit 8bf2683

Please sign in to comment.
You can’t perform that action at this time.