fix debug mode flag not set before creating instance
continuous-integration/drone/push Build is passing Details

pull/1/head
cosmonaut 2021-11-08 14:13:59 -08:00 committed by Beau Blyth
parent 8e37f72dc2
commit ab941a68df
1 changed files with 4 additions and 3 deletions

View File

@ -9761,6 +9761,10 @@ static Refresh_Device* VULKAN_CreateDevice(
VULKAN_INTERNAL_LoadEntryPoints(renderer); VULKAN_INTERNAL_LoadEntryPoints(renderer);
renderer->presentMode = presentationParameters->presentMode;
renderer->debugMode = debugMode;
renderer->usesExternalDevice = 0;
/* Create the VkInstance */ /* Create the VkInstance */
if (!VULKAN_INTERNAL_CreateInstance(renderer, presentationParameters->deviceWindowHandle)) if (!VULKAN_INTERNAL_CreateInstance(renderer, presentationParameters->deviceWindowHandle))
{ {
@ -9769,10 +9773,7 @@ static Refresh_Device* VULKAN_CreateDevice(
} }
renderer->deviceWindowHandle = presentationParameters->deviceWindowHandle; renderer->deviceWindowHandle = presentationParameters->deviceWindowHandle;
renderer->presentMode = presentationParameters->presentMode;
renderer->debugMode = debugMode;
renderer->headless = presentationParameters->deviceWindowHandle == NULL; renderer->headless = presentationParameters->deviceWindowHandle == NULL;
renderer->usesExternalDevice = 0;
/* /*
* Create the WSI vkSurface * Create the WSI vkSurface