summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/GLUtil.cpp
diff options
context:
space:
mode:
authorshuffle2 <godisgovernment@gmail.com>2014-12-13 21:24:12 -0800
committershuffle2 <godisgovernment@gmail.com>2014-12-13 21:24:12 -0800
commit5aa1d4733d30c2779bd857940699c01d079fe80f (patch)
treeddf37983dfaeec830103c94c825f45d4d2f9bed5 /Source/Core/VideoBackends/OGL/GLUtil.cpp
parent3c10ffa574d7d189efad6c4b4341753e207a524e (diff)
parent1c316eb18c5f20984d9555c2ff4c9b4c489e19b3 (diff)
Merge pull request #1699 from unknownbrackets/attributeless-fix
OGL: Correctly define attrib 0 in attributeless
Diffstat (limited to 'Source/Core/VideoBackends/OGL/GLUtil.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/GLUtil.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}