...
 
Commits (2)
......@@ -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);
}
//----------------------------------------------------------------
......