Commit 9132464d authored by Isaak Lim's avatar Isaak Lim
Browse files

- updated the checkOpenGL function for the "Shader Pipeline Renderer",...

- updated the checkOpenGL function for the "Shader Pipeline Renderer", "Depth-Peeling Renderer" and the "SSAO Renderer"
- updated the checkOpenGL function for the "Depth Image Post Processor", "Sobel Post Processor", "Philips Stereo Post Processor" and "Gray Post Processor"

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17627 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1fc8b812
......@@ -56,6 +56,10 @@
#include <OpenFlipper/BasePlugin/PluginFunctions.hh>
#include <OpenFlipper/common/GlobalOptions.hh>
// QT_NO_OPENGL currently has to be undefined first in QT5 because of QT5 and GLEW conflicts
#undef QT_NO_OPENGL
#include <QGLFormat>
#define QT_NO_OPENGL
PostProcessorSobelPlugin::PostProcessorSobelPlugin() :
shader_(0)
......@@ -73,6 +77,10 @@ QString PostProcessorSobelPlugin::postProcessorName() {
}
QString PostProcessorSobelPlugin::checkOpenGL() {
QGLFormat::OpenGLVersionFlags flags = QGLFormat::openGLVersionFlags();
if ( ! flags.testFlag(QGLFormat::OpenGL_Version_3_0) )
return QString("Insufficient OpenGL Version! OpenGL 3.0 or higher required");
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