Move OpenGLVersionChecker to gl library

This commit is contained in:
David Rowe 2016-01-29 12:29:21 +13:00
parent b7134c75c3
commit 2020514974
3 changed files with 7 additions and 7 deletions

View file

@ -17,12 +17,12 @@
#include <QSharedMemory>
#include <QTranslator>
#include <gl/OpenGLVersionChecker.h>
#include <SharedUtil.h>
#include "AddressManager.h"
#include "Application.h"
#include "InterfaceLogging.h"
#include "OpenGLVersionChecker.h"
#include "MainWindow.h"
int main(int argc, const char* argv[]) {

View file

@ -1,6 +1,6 @@
//
// OpenGLVersionChecker.cpp
// interface/src
// libraries/gl/src/gl
//
// Created by David Rowe on 28 Jan 2016.
// Copyright 2016 High Fidelity, Inc.
@ -14,7 +14,7 @@
#include <QMessageBox>
#include <QRegularExpression>
#include "GLCanvas.h"
#include "GLWidget.h"
OpenGLVersionChecker::OpenGLVersionChecker(int& argc, char** argv) :
QApplication(argc, argv)
@ -25,10 +25,10 @@ bool OpenGLVersionChecker::isValidVersion() {
bool valid = true;
// Retrieve OpenGL version
GLCanvas* glCanvas = new GLCanvas();
glCanvas->initializeGL();
GLWidget* glWidget = new GLWidget();
glWidget->initializeGL();
QString glVersion = QString((const char*)glGetString(GL_VERSION));
delete glCanvas;
delete glWidget;
// Compare against minimum
// The GL_VERSION string begins with a version number in one of these forms:

View file

@ -1,6 +1,6 @@
//
// OpenGLVersionChecker.h
// interface/src
// libraries/gl/src/gl
//
// Created by David Rowe on 28 Jan 2016.
// Copyright 2016 High Fidelity, Inc.