Fix updated glew for Windows

This commit is contained in:
Jack Andersen 2017-02-24 21:58:09 -10:00
parent 0cc794f49d
commit 8bcac27c10
4 changed files with 6 additions and 2 deletions

View File

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

View File

@ -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 */

View File

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

View File

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