Commit 3fbd4de9 authored by Isaak Lim's avatar Isaak Lim

- 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 44f4cd81
......@@ -58,10 +58,21 @@ QString Renderer::checkOpenGL()
{
// Get version and check
QGLFormat::OpenGLVersionFlags flags = QGLFormat::openGLVersionFlags();
if ( ! flags.testFlag(QGLFormat::OpenGL_Version_2_0) )
return QString("Insufficient OpenGL Version! OpenGL 2.0 or higher required");
if ( !flags.testFlag(QGLFormat::OpenGL_Version_3_2) )
return QString("Insufficient OpenGL Version! OpenGL 3.2 or higher required");
// Check extensions
QString glExtensions = QString((const char*)glGetString(GL_EXTENSIONS));
QString missing("");
if ( !glExtensions.contains("GL_ARB_vertex_buffer_object") )
missing += "GL_ARB_vertex_buffer_object extension missing\n";
#ifndef __APPLE__
if ( !glExtensions.contains("GL_ARB_vertex_program") )
missing += "GL_ARB_vertex_program extension missing\n";
#endif
return "";
return missing;
}
#if QT_VERSION < 0x050000
......
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