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
1 changed files with 3 additions and 0 deletions

View File

@ -664,6 +664,9 @@ void init() {
GLERR("aPosition");
// #endif
glDisableVertexAttribArray(aTexture);
glDisableVertexAttribArray(aColor);
#if CAP_VERTEXBUFFER
glGenBuffers(1, &buf_current);
glGenBuffers(1, &buf_buffered);