mirror of https://github.com/AxioDL/boo.git
Fix updated glew for Windows
This commit is contained in:
parent
0cc794f49d
commit
8bcac27c10
|
@ -81,6 +81,8 @@
|
|||
#define __glew_h__
|
||||
#define __GLEW_H__
|
||||
|
||||
#define GLEW_STATIC
|
||||
|
||||
#if defined(__gl_h_) || defined(__GL_H__) || defined(_GL_H) || defined(__X_GL_H)
|
||||
#error gl.h included before glew.h
|
||||
#endif
|
||||
|
|
|
@ -38,9 +38,9 @@
|
|||
#elif defined(GLEW_EGL)
|
||||
# include <GL/eglew.h>
|
||||
#elif defined(_WIN32)
|
||||
# include <GL/wglew.h>
|
||||
# include "boo/graphicsdev/wglew.h"
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
|
||||
# include <GL/glxew.h>
|
||||
# include "boo/graphicsdev/glxew.h"
|
||||
#endif
|
||||
|
||||
#include <stddef.h> /* For size_t */
|
||||
|
|
|
@ -362,6 +362,7 @@ public:
|
|||
int clientReturn = 0;
|
||||
std::thread clientThread([&]()
|
||||
{
|
||||
logvisor::RegisterThreadName("Boo Client Thread");
|
||||
CoInitializeEx(nullptr, COINIT_MULTITHREADED | COINIT_DISABLE_OLE1DDE);
|
||||
clientReturn = m_callback.appMain(this);
|
||||
PostThreadMessage(g_mainThreadId, WM_USER+1, 0, 0);
|
||||
|
|
|
@ -433,6 +433,7 @@ public:
|
|||
std::unique_lock<std::mutex> innerLk(initmt);
|
||||
innerLk.unlock();
|
||||
initcv.notify_one();
|
||||
logvisor::RegisterThreadName("Boo Client Thread");
|
||||
clientReturn = m_callback.appMain(this);
|
||||
pthread_kill(mainThread, SIGUSR2);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue