[Bf-blender-cvs] [5b246fd4b3d] tmp-vulkan: Vulkan: Fix offscreen context creation.
Jeroen Bakker
noreply at git.blender.org
Tue Jun 22 09:24:21 CEST 2021
Commit: 5b246fd4b3de7cd79b0e85fb9fc0d5d1222bdd18
Author: Jeroen Bakker
Date: Tue Jun 22 09:22:28 2021 +0200
Branches: tmp-vulkan
https://developer.blender.org/rB5b246fd4b3de7cd79b0e85fb9fc0d5d1222bdd18
Vulkan: Fix offscreen context creation.
On linux both the display and window should be available to create a
window surface. Only the display was checked making it fail later on
when creating a present queue.
===================================================================
M intern/ghost/intern/GHOST_ContextVK.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_ContextVK.cpp b/intern/ghost/intern/GHOST_ContextVK.cpp
index 81832e7a1b4..dd93b09d4d9 100644
--- a/intern/ghost/intern/GHOST_ContextVK.cpp
+++ b/intern/ghost/intern/GHOST_ContextVK.cpp
@@ -829,7 +829,7 @@ GHOST_TSuccess GHOST_ContextVK::initializeDrawingContext()
#elif defined(__APPLE__)
const bool use_window_surface = (m_metal_layer != NULL);
#else /* X11 */
- const bool use_window_surface = (m_display != NULL);
+ const bool use_window_surface = (m_display != NULL) && (m_window != (Window)NULL);
#endif
auto layers_available = getLayersAvailable();
More information about the Bf-blender-cvs
mailing list