From f59fd7b0c96e4906c8615608b77f9ebd2b1dafd7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 10 Aug 2020 18:06:11 +0200 Subject: [PATCH] fixed a crash caused by glhr::init on some video cards --- glhr.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glhr.cpp b/glhr.cpp index 2665e632..8f2af5b2 100644 --- a/glhr.cpp +++ b/glhr.cpp @@ -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);