From 0d1cf178c7703cae2fadc8291497b741a61ce934 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 21 Dec 2017 18:53:29 -0800 Subject: Updated path to glew to fix build error --- .../UnityEmulator/src/UnityGraphicsGLCore_Impl.h | 29 +++++++++++++++++----- 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'unityplugin/UnityEmulator') diff --git a/unityplugin/UnityEmulator/src/UnityGraphicsGLCore_Impl.h b/unityplugin/UnityEmulator/src/UnityGraphicsGLCore_Impl.h index ec65625..293f21d 100644 --- a/unityplugin/UnityEmulator/src/UnityGraphicsGLCore_Impl.h +++ b/unityplugin/UnityEmulator/src/UnityGraphicsGLCore_Impl.h @@ -4,13 +4,30 @@ #if OPENGL_SUPPORTED -#ifndef GLEW_STATIC -# define GLEW_STATIC +#if defined(PLATFORM_WIN32) + +# ifndef GLEW_STATIC +# define GLEW_STATIC +# endif +# include "GL/glew.h" +# define NOMINMAX +# include "GL/wglew.h" +# include + +#elif defined(PLATFORM_LINUX) + +# ifndef GLEW_STATIC +# define GLEW_STATIC // Must be defined to use static version of glew +# endif +# ifndef GLEW_NO_GLU +# define GLEW_NO_GLU +# endif + +# include "GL/glew.h" + +#else +# error Unsupported platform #endif -#include "glew.h" -#define NOMINMAX -#include "wglew.h" -#include class UnityGraphicsGLCore_Impl { -- cgit v1.2.3