log missing material texture errors

This commit is contained in:
milek7
2018-07-19 00:25:08 +02:00
parent a53224b47d
commit 88b7d0202b

View File

@@ -149,6 +149,8 @@ void opengl_material::finalize(bool Loadnow)
texture_handle handle = textures[entry.id];
if (handle)
GfxRenderer.Texture(handle).set_components_hint((GLint)entry.components);
else
log_error("missing texture: " + it.first);
}
}