Commit 1a60315f authored by Martin Schultz's avatar Martin Schultz

Replaced aliased OpenGL Calls

parent 2ef6a7d5
......@@ -213,15 +213,15 @@ void QtWidgetNode::uploadPlane()
// Create buffer for vertex coordinates if necessary
if ( ! vbo_ ) {
glGenBuffersARB(1, &vbo_);
glGenBuffers(1, &vbo_);
}
// Bind buffer
glBindBufferARB(GL_ARRAY_BUFFER_ARB, vbo_);
glBindBuffer(GL_ARRAY_BUFFER_ARB, vbo_);
// Upload to buffer
glBufferDataARB(GL_ARRAY_BUFFER_ARB, buffersize * sizeof(float), &vboData_[0], GL_STATIC_DRAW_ARB);
glBufferData(GL_ARRAY_BUFFER_ARB, buffersize * sizeof(float), &vboData_[0], GL_STATIC_DRAW_ARB);
glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
glBindBuffer(GL_ARRAY_BUFFER_ARB, 0);
}
//----------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment