mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 12:32:34 +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);
|
FTextureID no = TexMan.CheckForTexture(sc.String, type, FTextureManager::TEXMAN_TryAny | FTextureManager::TEXMAN_Overridable);
|
||||||
FTexture *tex = TexMan.GetTexture(no);
|
FTexture *tex = TexMan.GetTexture(no);
|
||||||
|
|
||||||
|
if (tex == nullptr)
|
||||||
|
{
|
||||||
|
sc.ScriptMessage("Material definition refers nonexistent texture '%s'\n", sc.String);
|
||||||
|
}
|
||||||
|
|
||||||
sc.MustGetToken('{');
|
sc.MustGetToken('{');
|
||||||
while (!sc.CheckToken('}'))
|
while (!sc.CheckToken('}'))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue