Skip to content

Commit

Permalink
Remove use of QtOpenGL/QGLFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Jan 5, 2024
1 parent 8456e71 commit 14b01de
Showing 1 changed file with 1 addition and 41 deletions.
42 changes: 1 addition & 41 deletions Fwk/AppFwk/cafUserInterface/cafAboutDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include <QPushButton>
#include <QVBoxLayout>
#include <QVariant>
#include <QtOpenGL/QGLFormat>

namespace caf
{
Expand Down Expand Up @@ -299,46 +298,7 @@ QString AboutDialog::versionStringForcurrentOpenGLContext()
{
QString versionString( "OpenGL " );

QGLFormat::OpenGLVersionFlags flags = QGLFormat::openGLVersionFlags();

if ( flags & QGLFormat::OpenGL_Version_4_0 )
versionString += "4.0";
else if ( flags & QGLFormat::OpenGL_Version_3_3 )
versionString += "3.3";
else if ( flags & QGLFormat::OpenGL_Version_3_2 )
versionString += "3.2";
else if ( flags & QGLFormat::OpenGL_Version_3_1 )
versionString += "3.1";
else if ( flags & QGLFormat::OpenGL_Version_3_0 )
versionString += "3.0";
else if ( flags & QGLFormat::OpenGL_ES_Version_2_0 )
versionString += "ES_Version 2.0";
else if ( flags & QGLFormat::OpenGL_ES_CommonLite_Version_1_1 )
versionString += "ES_CommonLite_Version 1.1";
else if ( flags & QGLFormat::OpenGL_ES_Common_Version_1_1 )
versionString += "ES_Common_Version 1.1";
else if ( flags & QGLFormat::OpenGL_ES_CommonLite_Version_1_0 )
versionString += "ES_CommonLite_Version 1.0";
else if ( flags & QGLFormat::OpenGL_ES_Common_Version_1_0 )
versionString += "ES_Common_Version 1.0";
else if ( flags & QGLFormat::OpenGL_Version_2_1 )
versionString += "2.1";
else if ( flags & QGLFormat::OpenGL_Version_2_0 )
versionString += "2.0";
else if ( flags & QGLFormat::OpenGL_Version_1_5 )
versionString += "1.5";
else if ( flags & QGLFormat::OpenGL_Version_1_4 )
versionString += "1.4";
else if ( flags & QGLFormat::OpenGL_Version_1_3 )
versionString += "1.3";
else if ( flags & QGLFormat::OpenGL_Version_1_2 )
versionString += "1.2";
else if ( flags & QGLFormat::OpenGL_Version_1_1 )
versionString += "1.1";
else if ( flags & QGLFormat::OpenGL_Version_None )
versionString += "None";
else
versionString += "Unknown";
// TODO: Add code to get OpenGL version string

return versionString;
}
Expand Down

0 comments on commit 14b01de

Please sign in to comment.