1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +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);)
GLERR("aPosition");
// #endif
glDisableVertexAttribArray(aTexture);
glDisableVertexAttribArray(aColor);
#if CAP_VERTEXBUFFER
glGenBuffers(1, &buf_current);