fix debug mode flag not set before creating instance

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