mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 09:33:36 +02:00
Move OpenGLVersionChecker to gl library
This commit is contained in:
parent
b7134c75c3
commit
2020514974
3 changed files with 7 additions and 7 deletions
|
@ -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[]) {
|
||||
|
|
|
@ -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:
|
|
@ -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.
|
Loading…
Reference in a new issue