1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 13:15:35 +00:00

Fix OSG USE_GRAPHICSWINDOW check

When OSG is built with `-DOSG_WINDOWING_SYSTEM=None`, this macro does not exist.

Replaces the Android-specific check with a general one.
This commit is contained in:
Gleb Mazovetskiy 2021-01-13 20:45:34 +00:00
parent fd602e2c31
commit d24a5f7b89

View file

@ -20,7 +20,7 @@
#include "imagetosurface.hpp" #include "imagetosurface.hpp"
#if defined(OSG_LIBRARY_STATIC) && !defined(ANDROID) #if defined(OSG_LIBRARY_STATIC) && defined(USE_GRAPHICSWINDOW)
// Sets the default windowing system interface according to the OS. // Sets the default windowing system interface according to the OS.
// Necessary for OpenSceneGraph to do some things, like decompression. // Necessary for OpenSceneGraph to do some things, like decompression.
USE_GRAPHICSWINDOW() USE_GRAPHICSWINDOW()