Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- added message about missing texture for material definition
  • Loading branch information
alexey-lysiuk committed Apr 11, 2019
1 parent 4319984 commit 8bf2683
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/r_data/gldefs.cpp
Expand Up @@ -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('}'))
{
Expand Down

0 comments on commit 8bf2683

Please sign in to comment.