Merge pull request #1650 from unknownbrackets/attributeless-fix

OGL: Unbind the active VAO before attributeless rendering
This commit is contained in:
skidau
2014-12-14 14:42:07 +11:00
7 changed files with 59 additions and 0 deletions

View File

@ -691,6 +691,8 @@ void Renderer::Shutdown()
delete m_post_processor;
m_post_processor = nullptr;
OpenGL_DeleteAttributelessVAO();
}
void Renderer::Init()
@ -717,6 +719,8 @@ void Renderer::Init()
" ocol0 = c;\n"
"}\n");
OpenGL_CreateAttributelessVAO();
// creating buffers
glGenBuffers(1, &s_ShowEFBCopyRegions_VBO);
glGenVertexArrays(1, &s_ShowEFBCopyRegions_VAO);