Commit fe889cfc authored by Martin Schultz's avatar Martin Schultz

removed chck for ARB_vertex_buffer_object as it has become part of opengl spec...

removed chck for ARB_vertex_buffer_object as it has become part of opengl spec in version 1.5 and is not listed as extension by some drivers (e.g. all apple drivers)
parent a974b4b3
......@@ -116,9 +116,6 @@ class RenderInterface {
* // Collect missing extension
* QString missing = "";
*
* if ( !glExtensions.contains("GL_ARB_vertex_buffer_object") )
* missing += "Missing Extension GL_ARB_vertex_buffer_object\n";
*
* if ( !glExtensions.contains("GL_ARB_vertex_program") )
* missing += "Missing Extension GL_ARB_vertex_program\n";
*
......
......@@ -1957,15 +1957,9 @@ bool Core::checkOpenGLCapabilities() {
missing += tr("No OpenGL support found!\n");
}
//Get OpenGL extensions
//Get OpenGL extensions not needed, deprecated style .... get rid of it ... soon
QString glExtensions = QString((const char*)glGetString(GL_EXTENSIONS));
// Vertex buffer objects used heavily in mesh node and almost all other nodes
if ( !glExtensions.contains("GL_ARB_vertex_buffer_object") ) {
ok = false;
missing += tr("Your graphics card does not support the GL_ARB_vertex_buffer_object extension!\n");
}
#else
QOpenGLContext* context = QOpenGLContext::currentContext();
......@@ -1979,14 +1973,6 @@ bool Core::checkOpenGLCapabilities() {
ok = false;
missing += tr("OpenGL Version less then 2.0!\n");
} else {
// Check extensions
if ( !context->hasExtension("GL_ARB_vertex_buffer_object") ) {
missing += "GL_ARB_vertex_buffer_object extension missing\n";
ok = false;
}
}
} else {
......
......@@ -99,9 +99,6 @@ MeshNodeT(Mesh& _mesh,
{
/// \todo : Handle vbo not supported
if ( ! checkExtensionSupported("GL_ARB_vertex_buffer_object") ) {
std::cerr << "Error! Vertex buffer objects are not supported! The meshNode will not work without them!" << std::endl;
}
drawMesh_ = new DrawMeshT<Mesh>(mesh_);
......
......@@ -411,7 +411,6 @@ update_geometry()
bbMax_.maximize(mesh_.point(*v_it));
}
if (GLEW_ARB_vertex_buffer_object) {
typedef typename Mesh::Point Point;
typedef typename Point::value_type PointScalar;
typedef typename Mesh::Normal Normal;
......@@ -543,7 +542,7 @@ update_topology()
//===================================================================
faceIndexBufferInitialized_ = false;
if ( GLEW_ARB_vertex_buffer_object && !indices_.empty() ) {
if ( !indices_.empty() ) {
// generate buffer
if (!face_index_buffer_) glGenBuffersARB(1, (GLuint*) &face_index_buffer_);
......
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