[glutils] Fix type conversion that happened on Windows
This commit is contained in:
parent
af3bff1a3f
commit
752c8c1db3
2
deps/glutils/src/glutils.cpp
vendored
2
deps/glutils/src/glutils.cpp
vendored
@ -102,7 +102,7 @@ void setupShaderParams(
|
|||||||
ox::Vector<ShaderVarSet> const&vars,
|
ox::Vector<ShaderVarSet> const&vars,
|
||||||
GLsizei vertexRowLen) noexcept {
|
GLsizei vertexRowLen) noexcept {
|
||||||
// setup vars
|
// setup vars
|
||||||
for (auto lenWritten = 0LU; auto const&v : vars) {
|
for (size_t lenWritten = 0; auto const&v : vars) {
|
||||||
auto const attr = static_cast<GLuint>(glGetAttribLocation(shader, v.name.c_str()));
|
auto const attr = static_cast<GLuint>(glGetAttribLocation(shader, v.name.c_str()));
|
||||||
glEnableVertexAttribArray(attr);
|
glEnableVertexAttribArray(attr);
|
||||||
glVertexAttribPointer(
|
glVertexAttribPointer(
|
||||||
|
Loading…
Reference in New Issue
Block a user