mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:01:09 +02:00
fix for windows
This commit is contained in:
parent
f6ed9c7b4b
commit
9767846c91
1 changed files with 6 additions and 0 deletions
|
@ -403,6 +403,12 @@ void Application::initializeGL() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
static bool isInitialized = false;
|
||||||
|
if (isInitialized) {
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
isInitialized = true;
|
||||||
|
}
|
||||||
GLenum err = glewInit();
|
GLenum err = glewInit();
|
||||||
if (GLEW_OK != err) {
|
if (GLEW_OK != err) {
|
||||||
/* Problem: glewInit failed, something is seriously wrong. */
|
/* Problem: glewInit failed, something is seriously wrong. */
|
||||||
|
|
Loading…
Reference in a new issue