Code: Select all
#define _IRR_COMPILE_WITH_WINDOWS_DEVICE_
Code: Select all
#ifndef _IRR_COMPILE_WITH_SDL_DEVICE_
#define _IRR_COMPILE_WITH_WINDOWS_DEVICE_
#endif
because in the COpenGLDriver.h file at line 466:
Code: Select all
#ifdef _IRR_COMPILE_WITH_WINDOWS_DEVICE_
CIrrDeviceWin32 *Device;
#endif
#endif
#ifdef _IRR_COMPILE_WITH_X11_DEVICE_
GLXDrawable Drawable;
Display* X11Display;
CIrrDeviceLinux *Device;
#endif
#ifdef _IRR_COMPILE_WITH_OSX_DEVICE_
CIrrDeviceMacOSX *Device;
#endif
#ifdef _IRR_COMPILE_WITH_SDL_DEVICE_
CIrrDeviceSDL *Device;
#endif
so what it said in the IrrCompileConfig.h at line 27:
Code: Select all
//! DEVICE is the windowing system used, several PLATFORMs support more than one DEVICE
//! Irrlicht can be compiled with more than one device
I applied this patch already in the last release of IrrSolid and worked well.
Another place in wich both SDL and window device can be defined is
in the file IrrCompileConfig.h at the line 73.
the fix is the same of above. just preventing defining both windows and SDL device is enough.
That issue i think belongs to all releases of irrlicht (i checked only 1.8 and 1.7 but probably is also in 1.6 and below.)