Commit 3ba6c357 authored by Jan Möbius's avatar Jan Möbius
Browse files

Disable Depth Peeling Plugin, if no geometry shader support is available!

closes #1177
refs   #995



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15681 383ad7c9-94d9-4d36-a494-682f7c89f535
parent caa1506a
...@@ -1514,8 +1514,6 @@ void DepthPeelingPlugin::render(ACG::GLState* _glState, Viewer::ViewerProperties ...@@ -1514,8 +1514,6 @@ void DepthPeelingPlugin::render(ACG::GLState* _glState, Viewer::ViewerProperties
QString DepthPeelingPlugin::checkOpenGL() { QString DepthPeelingPlugin::checkOpenGL() {
// TODO: Correctly configure the following requirements!
// Get version and check // Get version and check
QGLFormat::OpenGLVersionFlags flags = QGLFormat::openGLVersionFlags(); QGLFormat::OpenGLVersionFlags flags = QGLFormat::openGLVersionFlags();
if ( ! flags.testFlag(QGLFormat::OpenGL_Version_2_0) ) if ( ! flags.testFlag(QGLFormat::OpenGL_Version_2_0) )
...@@ -1527,11 +1525,11 @@ QString DepthPeelingPlugin::checkOpenGL() { ...@@ -1527,11 +1525,11 @@ QString DepthPeelingPlugin::checkOpenGL() {
// Collect missing extension // Collect missing extension
QString missing = ""; QString missing = "";
// if ( !glExtensions.contains("GL_ARB_vertex_buffer_object") ) if ( !glExtensions.contains("GL_ARB_geometry_shader4") )
// missing += "Missing Extension GL_ARB_vertex_buffer_object\n"; missing += "Missing Extension GL_ARB_geometry_shader4\n";
//
// if ( !glExtensions.contains("GL_ARB_vertex_program") ) if ( !glExtensions.contains("GL_ARB_vertex_program") )
// missing += "Missing Extension GL_ARB_vertex_program\n"; missing += "Missing Extension GL_ARB_vertex_program\n";
return missing; return missing;
......
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