Commit e2151b86 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'featureRemoveExtensions' into 'master'

Replaced aliased OpenGL Calls

See merge request !3
parents 2ef6a7d5 1a60315f
......@@ -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