mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 08:10:26 +02:00
cleanup: only build some files on WIN32 and compile EGL only if needed
This commit is contained in:
@ -13,7 +13,7 @@ static const char* const copyright = "Irrlicht Engine (c) 2002-2017 Nikolaus Geb
|
||||
#endif
|
||||
|
||||
#include "irrlicht.h"
|
||||
#ifdef _IRR_COMPILE_WITH_WINDOWS_DEVICE_
|
||||
#ifdef _IRR_WINDOWS_API_
|
||||
#include "CIrrDeviceWin32.h"
|
||||
#endif
|
||||
|
||||
@ -60,7 +60,7 @@ namespace irr
|
||||
|
||||
IrrlichtDevice* dev = 0;
|
||||
|
||||
#ifdef _IRR_COMPILE_WITH_WINDOWS_DEVICE_
|
||||
#ifdef _IRR_WINDOWS_API_
|
||||
if (params.DeviceType == EIDT_WIN32 || (!dev && params.DeviceType == EIDT_BEST))
|
||||
dev = new CIrrDeviceWin32(params);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user