Merge pull request #149 from rockolo/master

Restore openGL state / unbind buffer
This commit is contained in:
Mikko Mononen 2014-08-27 06:59:49 +03:00
commit 9bb72f02bd

View File

@ -1070,7 +1070,9 @@ static void glnvg__renderFlush(void* uptr)
glDisableVertexAttribArray(1);
#if defined NANOVG_GL3
glBindVertexArray(0);
#endif
#endif
glDisable(GL_CULL_FACE);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glUseProgram(0);
glBindTexture(GL_TEXTURE_2D, 0);
}