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:
parent
0926b98c83
commit
f59fd7b0c9
3
glhr.cpp
3
glhr.cpp
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user