forgot this one
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@690 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
1c8ec4a070
commit
06569b3dbf
1 changed files with 9 additions and 6 deletions
|
|
@ -168,8 +168,6 @@ static void* vulkan_lib_load() {
|
||||||
}
|
}
|
||||||
|
|
||||||
static MwErrorEnum vulkan_instance_setup(MwWidget handle, vulkan_t* o) {
|
static MwErrorEnum vulkan_instance_setup(MwWidget handle, vulkan_t* o) {
|
||||||
(void)(handle);
|
|
||||||
|
|
||||||
uint32_t vulkan_version = vulkan_config.vk_version;
|
uint32_t vulkan_version = vulkan_config.vk_version;
|
||||||
uint32_t api_version = vulkan_config.api_version;
|
uint32_t api_version = vulkan_config.api_version;
|
||||||
uint32_t extension_count = 0;
|
uint32_t extension_count = 0;
|
||||||
|
|
@ -210,10 +208,15 @@ static MwErrorEnum vulkan_instance_setup(MwWidget handle, vulkan_t* o) {
|
||||||
|
|
||||||
/* setup enabled extensions */
|
/* setup enabled extensions */
|
||||||
arrput(enabledExtensions, VK_KHR_SURFACE_EXTENSION_NAME);
|
arrput(enabledExtensions, VK_KHR_SURFACE_EXTENSION_NAME);
|
||||||
#if defined(_WIN32)
|
#ifdef USE_GDI
|
||||||
arrput(enabledExtensions, VK_KHR_WIN32_SURFACE_EXTENSION_NAME);
|
if(handle->lowlevel->common.type == MwLLBackendGDI) {
|
||||||
#elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)
|
arrput(enabledExtensions, VK_KHR_WIN32_SURFACE_EXTENSION_NAME);
|
||||||
arrput(enabledExtensions, VK_KHR_XLIB_SURFACE_EXTENSION_NAME);
|
}
|
||||||
|
#endif
|
||||||
|
#ifdef USE_X11
|
||||||
|
if(handle->lowlevel->common.type == MwLLBackendX11) {
|
||||||
|
arrput(enabledExtensions, VK_KHR_XLIB_SURFACE_EXTENSION_NAME);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* passing null gives us all the extensions provided by the current vulkan implementation */
|
/* passing null gives us all the extensions provided by the current vulkan implementation */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue