]> git.tdb.fi Git - libs/gl.git/commit
Fix reloading meshes with ResourceManager
authorMikko Rasa <tdb@tdb.fi>
Fri, 16 Feb 2024 21:16:15 +0000 (23:16 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 16 Feb 2024 21:16:15 +0000 (23:16 +0200)
commit07afe3362d09286a494ff46060cd0b7e618d1339
treece9742306bc0456753bd64088e200c8b63619eeb
parentb884b918c2dfc8c20ca51437f21915acad104d9a
Fix reloading meshes with ResourceManager

Unloading was clearing the format of VertexSetup and it wouldn't accept
the vertex array.  Setting storage format should also be skipped while
loading from a file if the same format was set previously.
source/core/mesh.cpp
source/core/vertexsetup.cpp