Back to the correct code

This commit is contained in:
samcake 2016-11-09 18:25:37 -08:00
parent c01b39b54b
commit 0ab4a781f5
2 changed files with 5 additions and 8 deletions

View file

@ -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);

View file

@ -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)