You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 13, 2024. It is now read-only.
#225 removed IRR_COMPILE_WITH_WINDOWS_DEVICE. Windows builds now always include the Windows Irrlicht device. However, SDL builds must only contain the SDL Irrlicht device. If both the Windows device and the SDL device exist, the Windows device takes precedence:
if (params.DeviceType == EIDT_WIN32 || (!dev && params.DeviceType == EIDT_BEST))
dev = newCIrrDeviceWin32(params);
#endif
#ifdef _IRR_COMPILE_WITH_OSX_DEVICE_
if (params.DeviceType == EIDT_OSX || (!dev && params.DeviceType == EIDT_BEST))
dev = newCIrrDeviceMacOSX(params);
#endif
#ifdef _IRR_COMPILE_WITH_X11_DEVICE_
if (params.DeviceType == EIDT_X11 || (!dev && params.DeviceType == EIDT_BEST))
dev = newCIrrDeviceLinux(params);
#endif
#ifdef _IRR_COMPILE_WITH_ANDROID_DEVICE_
if (params.DeviceType == EIDT_ANDROID || (!dev && params.DeviceType == EIDT_BEST))
dev = newCIrrDeviceAndroid(params);
#endif
#ifdef _IRR_COMPILE_WITH_SDL_DEVICE_
if (params.DeviceType == EIDT_SDL || (!dev && params.DeviceType == EIDT_BEST))
dev = newCIrrDeviceSDL(params);
#endif
if (dev && !dev->getVideoDriver() && params.DriverType != video::EDT_NULL)
{
dev->closeDevice(); // destroy window
dev->run(); // consume quit message
dev->drop();
dev = 0;
}
return dev;
}
As a result, USE_SDL2 has no effect anymore on Windows. I suggest reverting #225 for now to make these builds work again, the PR can always be redone correctly later.
How to reproduce
Compile Minetest with -DUSE_SDL2=TRUE on Windows. See that the "About" tab still shows "Irrlicht device: WIN32".
This doesn't seem to be the same issue as #239, the CI still fails after reverting #225.
The text was updated successfully, but these errors were encountered:
@nerzhul
#225 removed
IRR_COMPILE_WITH_WINDOWS_DEVICE
. Windows builds now always include the Windows Irrlicht device. However, SDL builds must only contain the SDL Irrlicht device. If both the Windows device and the SDL device exist, the Windows device takes precedence:irrlicht/source/Irrlicht/Irrlicht.cpp
Lines 58 to 97 in 9954667
As a result,
USE_SDL2
has no effect anymore on Windows. I suggest reverting #225 for now to make these builds work again, the PR can always be redone correctly later.How to reproduce
Compile Minetest with
-DUSE_SDL2=TRUE
on Windows. See that the "About" tab still shows "Irrlicht device: WIN32".This doesn't seem to be the same issue as #239, the CI still fails after reverting #225.
The text was updated successfully, but these errors were encountered: