mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-13 21:27:21 +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
|
||||
|
||||
#ifdef WIN32
|
||||
static bool isInitialized = false;
|
||||
if (isInitialized) {
|
||||
return;
|
||||
} else {
|
||||
isInitialized = true;
|
||||
}
|
||||
GLenum err = glewInit();
|
||||
if (GLEW_OK != err) {
|
||||
/* Problem: glewInit failed, something is seriously wrong. */
|
||||
|
|
Loading…
Reference in a new issue