Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Rauch <Rauch.Christian@gmx.de>2021-06-16 13:42:02 +0300
committerChristian Rauch <Rauch.Christian@gmx.de>2021-06-22 22:00:40 +0300
commit0732a9f1b292edfea6270c23466a40c69b0f99ac (patch)
treed6997cdee75ed09302e3cf45964712b51d6ab4e0 /intern/ghost/CMakeLists.txt
parent87833f8f9590a677f41698b1a3fc4a7b923c8dd2 (diff)
GHOST/XR: enable X11-EGL context for OpenXR
Diffstat (limited to 'intern/ghost/CMakeLists.txt')
-rw-r--r--intern/ghost/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt
index 40d78a22e6f..1815a46591a 100644
--- a/intern/ghost/CMakeLists.txt
+++ b/intern/ghost/CMakeLists.txt
@@ -483,10 +483,12 @@ if(WITH_XR_OPENXR)
shlwapi
)
elseif(UNIX AND NOT APPLE)
- list(APPEND XR_PLATFORM_DEFINES
- -DXR_OS_LINUX
- -DXR_USE_PLATFORM_XLIB
- )
+ list(APPEND XR_PLATFORM_DEFINES -DXR_OS_LINUX)
+ if (WITH_GL_EGL)
+ list(APPEND XR_PLATFORM_DEFINES -DXR_USE_PLATFORM_EGL)
+ else()
+ list(APPEND XR_PLATFORM_DEFINES -DXR_USE_PLATFORM_XLIB)
+ endif()
endif()
add_definitions(-DWITH_XR_OPENXR ${XR_PLATFORM_DEFINES})