mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- added message about missing texture for material definition
https://forum.zdoom.org/viewtopic.php?t=64234
This commit is contained in:
parent
4319984e74
commit
8bf2683b4a
1 changed files with 5 additions and 0 deletions
|
@ -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('}'))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue