aboutsummaryrefslogtreecommitdiff
path: root/loader/loader.h
diff options
context:
space:
mode:
authorLenny Komow <lenny@lunarg.com>2018-02-22 11:28:16 -0700
committerMike Schuchardt <mikes@lunarg.com>2018-03-09 13:54:31 -0700
commit7e59e52a997d0d98bea3e140b4ca2d19b38666d4 (patch)
tree5707674dee36801192864e840955b182e0dcf521 /loader/loader.h
parent84d0e6e621aa6dc3a6eb23c972b3f023a706e7ad (diff)
downloadusermoji-7e59e52a997d0d98bea3e140b4ca2d19b38666d4.tar.xz
loader: Only return ext pointers if ext is enabled
The loader previously returned valid pointers to functions from VK_KHR_swapchain and VK_KHR_display_swapchain even if the extensions weren't enabled. This change fixed that.
Diffstat (limited to 'loader/loader.h')
-rw-r--r--loader/loader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/loader/loader.h b/loader/loader.h
index 8abc034a..aa9a8554 100644
--- a/loader/loader.h
+++ b/loader/loader.h
@@ -312,6 +312,8 @@ struct loader_instance {
bool wsi_ios_surface_enabled;
#endif
bool wsi_display_enabled;
+ bool wsi_swapchain_enabled;
+ bool wsi_display_swapchain_enabled;
};
// VkPhysicalDevice requires special treatment by loader. Firstly, terminator