From 8bf2683b4a7141e4b37888ff1d83a1a4bcddd226 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 11 Apr 2019 14:48:45 +0300 Subject: [PATCH] - added message about missing texture for material definition https://forum.zdoom.org/viewtopic.php?t=64234 --- src/r_data/gldefs.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/r_data/gldefs.cpp b/src/r_data/gldefs.cpp index 27bc58766..2c6dbf8fb 100644 --- a/src/r_data/gldefs.cpp +++ b/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('}')) {