]> git.tdb.fi Git - libs/gl.git/commit
Move checking of vertex attribute indices to VertexSetup
authorMikko Rasa <tdb@tdb.fi>
Sun, 28 Mar 2021 13:48:48 +0000 (16:48 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 28 Mar 2021 13:48:48 +0000 (16:48 +0300)
commit6d33ca40415937790ed0cddc97148b5fbd90ccaf
treec027c4a9d09d5bbd696adc6d30eda25e9e8cb4f3
parent2815449aa1c2a3c813f50ff85325cc2a3334430c
Move checking of vertex attribute indices to VertexSetup

This avoids issues when loading meshes with ResourceManager, since it's
not possible to read the value of GL_MAX_VERTEX_ATTRIBS from the loading
thread.
source/core/vertexformat.cpp
source/core/vertexsetup.cpp
source/core/vertexsetup.h