main: Don't create SDL Vulkan surface if in a VRSession

Fixes a regression from the present queue stuff.
This commit is contained in:
Joshua Ashton 2023-05-09 23:08:56 +00:00
parent 19cac186e1
commit c78294f2e5

View file

@ -640,7 +640,7 @@ int main(int argc, char **argv)
return 1;
}
if ( BIsNested() )
if ( BIsNested() && !BIsVRSession() )
{
if ( !SDL_Vulkan_CreateSurface( g_SDLWindow, instance, &surface ) )
{