OGL: Move attributeless VAO creation to Init.

This way we won't trash an existing bound VBO by mistake.
This commit is contained in:
Unknown W. Brackets
2014-12-11 01:00:37 -08:00
parent 290fd545e6
commit de2abbed17
3 changed files with 14 additions and 9 deletions

View File

@ -714,6 +714,8 @@ void Renderer::Init()
" ocol0 = c;\n"
"}\n");
OpenGL_CreateAttributelessVAO();
// creating buffers
glGenBuffers(1, &s_ShowEFBCopyRegions_VBO);
glGenVertexArrays(1, &s_ShowEFBCopyRegions_VAO);