mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 16:49:27 +00:00
OGL: Correctly define attrib 0 in attributeless.
This commit is contained in:
parent
15f7e63cc2
commit
1c316eb18c
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ void OpenGL_CreateAttributelessVAO()
|
||||||
glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat), nullptr, GL_STATIC_DRAW);
|
glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat), nullptr, GL_STATIC_DRAW);
|
||||||
|
|
||||||
// We must also define vertex attribute 0.
|
// We must also define vertex attribute 0.
|
||||||
|
glBindVertexArray(attributelessVAO);
|
||||||
glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, nullptr);
|
glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue