Commit d55ce754 authored by Martin Schultz's avatar Martin Schultz

removed redundant extensions checks from depthpeeling renderer, as it

requires opengl version 3.2 and the extensions are already part of the
spec
parent fed70c63
......@@ -216,22 +216,11 @@ DepthPeeling::~DepthPeeling()
QString DepthPeeling::checkOpenGL()
{
if (!ACG::openGLVersion(3, 2))
return QString("Insufficient OpenGL Version! OpenGL 3.2 or higher required");
return QString("Insufficient OpenGL Version! OpenGL 3.2 or higher required");
QString missing("");
//no other extensions are necessary, as OpenGL version 3.2 includes them all in the spec
if (!ACG::checkExtensionSupported("GL_ARB_vertex_buffer_object"))
missing += "GL_ARB_vertex_buffer_object extension missing\n";
#ifndef __APPLE__
if (!ACG::checkExtensionSupported("GL_ARB_vertex_program"))
missing += "GL_ARB_vertex_program extension missing\n";
#endif
if (!ACG::checkExtensionSupported("GL_ARB_occlusion_query"))
missing += "GL_ARB_occlusion_query extension missing\n";
return missing;
return QString("");
}
......
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