Merge pull request #1699 from unknownbrackets/attributeless-fix

OGL: Correctly define attrib 0 in attributeless
This commit is contained in:
shuffle2 2014-12-13 21:24:12 -08:00
commit 5aa1d4733d
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}