mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-23 01:39:19 +02:00
log missing material texture errors
This commit is contained in:
@@ -149,6 +149,8 @@ void opengl_material::finalize(bool Loadnow)
|
|||||||
texture_handle handle = textures[entry.id];
|
texture_handle handle = textures[entry.id];
|
||||||
if (handle)
|
if (handle)
|
||||||
GfxRenderer.Texture(handle).set_components_hint((GLint)entry.components);
|
GfxRenderer.Texture(handle).set_components_hint((GLint)entry.components);
|
||||||
|
else
|
||||||
|
log_error("missing texture: " + it.first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user