fix more warnings, implement missing X11 function for dynamic loading

This commit is contained in:
Erwin Coumans
2014-08-21 17:27:14 -07:00
parent 60ab931dbd
commit 37aa4dc4f8
4 changed files with 28 additions and 13 deletions

View File

@@ -131,7 +131,8 @@ void GLPrimitiveRenderer::loadBufferData()
glGenBuffers(1, &m_data->m_vertexBuffer);
glBindBuffer(GL_ARRAY_BUFFER, m_data->m_vertexBuffer);
glBufferData(GL_ARRAY_BUFFER, 4 * sizeof(Vertex), vertexData, GL_DYNAMIC_DRAW);
GLuint err = glGetError();
GLuint err;
err = glGetError();
assert(err==GL_NO_ERROR);