Fixes that Windows+SDL builds use the Windows Irrlicht device instead of the SDL Irrlicht device.
This commit is contained in:
Gregor Parzefall
2023-10-04 23:29:59 +02:00
committed by GitHub
parent 9954667c45
commit 5b2f1927d0
11 changed files with 34 additions and 42 deletions

View File

@ -13,7 +13,7 @@ static const char* const copyright = "Irrlicht Engine (c) 2002-2017 Nikolaus Geb
#endif
#include "irrlicht.h"
#ifdef _IRR_WINDOWS_API_
#ifdef _IRR_COMPILE_WITH_WINDOWS_DEVICE_
#include "CIrrDeviceWin32.h"
#endif
@ -60,7 +60,7 @@ namespace irr
IrrlichtDevice* dev = 0;
#ifdef _IRR_WINDOWS_API_
#ifdef _IRR_COMPILE_WITH_WINDOWS_DEVICE_
if (params.DeviceType == EIDT_WIN32 || (!dev && params.DeviceType == EIDT_BEST))
dev = new CIrrDeviceWin32(params);
#endif