From 1c316eb18c5f20984d9555c2ff4c9b4c489e19b3 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 13 Dec 2014 21:01:29 -0800 Subject: [PATCH] OGL: Correctly define attrib 0 in attributeless. --- Source/Core/VideoBackends/OGL/GLUtil.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoBackends/OGL/GLUtil.cpp b/Source/Core/VideoBackends/OGL/GLUtil.cpp index dddc299fb9..8809d6be39 100644 --- a/Source/Core/VideoBackends/OGL/GLUtil.cpp +++ b/Source/Core/VideoBackends/OGL/GLUtil.cpp @@ -129,6 +129,7 @@ void OpenGL_CreateAttributelessVAO() glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat), nullptr, GL_STATIC_DRAW); // We must also define vertex attribute 0. + glBindVertexArray(attributelessVAO); glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, nullptr); }