Commit 7bc7d66d authored by hybrid's avatar hybrid

Fix for compiling without OpenGL, provided by jmpep.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1504 dfc29bdd-3216-0410-991c-e03cc46cb475
parent d797e162
......@@ -7,6 +7,14 @@
#include "IrrCompileConfig.h"
#if defined(_IRR_WINDOWS_API_)
// include windows headers for HWND
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#elif defined(_IRR_USE_OSX_DEVICE_)
#include "CIrrDeviceMacOSX.h"
#endif
#ifdef _IRR_COMPILE_WITH_OPENGL_
#include "CNullDriver.h"
......@@ -15,9 +23,6 @@
#include "SIrrCreationParameters.h"
#if defined(_IRR_WINDOWS_API_)
// include windows headers for HWND
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <GL/gl.h>
#include "glext.h"
#ifdef _MSC_VER
......@@ -25,7 +30,6 @@
#pragma comment(lib, "GLu32.lib")
#endif
#elif defined(_IRR_USE_OSX_DEVICE_)
#include "CIrrDeviceMacOSX.h"
#if defined(_IRR_OPENGL_USE_EXTPOINTER_)
#define GL_GLEXT_LEGACY 1
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment