1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-12 02:10:34 +00:00

fixed missing 3 to SHDIM in shaders.cpp

This commit is contained in:
Zeno Rogue 2019-06-28 10:00:52 +02:00
parent 76d82d4e9a
commit 13b5223ffb

View File

@ -718,7 +718,7 @@ void vertices(const vector<glvertex>& v, int vshift = 0) {
#if CAP_SHADER #if CAP_SHADER
glVertexAttribPointer(aPosition, SHDIM, GL_FLOAT, GL_FALSE, sizeof(glvertex), &v[vshift]); glVertexAttribPointer(aPosition, SHDIM, GL_FLOAT, GL_FALSE, sizeof(glvertex), &v[vshift]);
#else #else
glVertexPointer(3, GL_FLOAT, sizeof(glvertex), &v[0]); glVertexPointer(SHDIM, GL_FLOAT, sizeof(glvertex), &v[0]);
#endif #endif
#endif #endif
} }