mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-15 07:56:22 +02:00
Back to the correct code
This commit is contained in:
parent
c01b39b54b
commit
0ab4a781f5
2 changed files with 5 additions and 8 deletions
|
@ -215,12 +215,10 @@ void Context::create() {
|
|||
}
|
||||
glewExperimental = true;
|
||||
glewInit();
|
||||
// if (glewIsSupported("GL_VERSION_4_5")) {
|
||||
// _version = 0x0405;
|
||||
// } else if (glewIsSupported("GL_VERSION_4_3")) {
|
||||
/* } else*/ if (glewIsSupported("GL_VERSION_4_8")) {
|
||||
///_version = 0x0403;
|
||||
_version = 0x0404;
|
||||
if (glewIsSupported("GL_VERSION_4_5")) {
|
||||
_version = 0x0405;
|
||||
} else if (glewIsSupported("GL_VERSION_4_3")) {
|
||||
_version = 0x0403;
|
||||
}
|
||||
glGetError();
|
||||
wglMakeCurrent(0, 0);
|
||||
|
|
|
@ -22,8 +22,7 @@
|
|||
#include "GLHelpers.h"
|
||||
|
||||
// Minimum gl version required is 4.1
|
||||
//#define MINIMUM_GL_VERSION 0x0401
|
||||
#define MINIMUM_GL_VERSION 0x0408
|
||||
#define MINIMUM_GL_VERSION 0x0401
|
||||
|
||||
OpenGLVersionChecker::OpenGLVersionChecker(int& argc, char** argv) :
|
||||
QApplication(argc, argv)
|
||||
|
|
Loading…
Reference in a new issue