1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed a crash caused by glhr::init on some video cards

This commit is contained in:
Zeno Rogue 2020-08-10 18:06:11 +02:00
parent 0926b98c83
commit f59fd7b0c9

View File

@ -663,6 +663,9 @@ void init() {
WITHSHADER(glEnableVertexAttribArray(aPosition);, glEnableClientState(GL_VERTEX_ARRAY);) WITHSHADER(glEnableVertexAttribArray(aPosition);, glEnableClientState(GL_VERTEX_ARRAY);)
GLERR("aPosition"); GLERR("aPosition");
// #endif // #endif
glDisableVertexAttribArray(aTexture);
glDisableVertexAttribArray(aColor);
#if CAP_VERTEXBUFFER #if CAP_VERTEXBUFFER
glGenBuffers(1, &buf_current); glGenBuffers(1, &buf_current);