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
QString DepthPeelingPlugin::checkOpenGL() {
// TODO: Correctly configure the following requirements!
// Get version and check
QGLFormat::OpenGLVersionFlags flags = QGLFormat::openGLVersionFlags();
if ( ! flags.testFlag(QGLFormat::OpenGL_Version_2_0) )
......@@ -1527,11 +1525,11 @@ QString DepthPeelingPlugin::checkOpenGL() {
// 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";
if ( !glExtensions.contains("GL_ARB_geometry_shader4") )
missing += "Missing Extension GL_ARB_geometry_shader4\n";
if ( !glExtensions.contains("GL_ARB_vertex_program") )
missing += "Missing Extension GL_ARB_vertex_program\n";
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