Move Vulkan init into main

Some Wayland server setup will need Vulkan initialized.
This commit is contained in:
Simon Ser 2021-02-02 11:56:51 +01:00
parent 202915271e
commit 49e0cc046e
2 changed files with 6 additions and 6 deletions

View file

@ -179,6 +179,12 @@ int main(int argc, char **argv)
return 1;
}
if ( vulkan_init() != True )
{
fprintf( stderr, "Failed to initialize Vulkan\n" );
return 1;
}
// Prevent our clients from connecting to the parent compositor
unsetenv("WAYLAND_DISPLAY");

View file

@ -2866,12 +2866,6 @@ steamcompmgr_main (int argc, char **argv)
allDamage = None;
clipChanged = True;
if ( vulkan_init() != True )
{
fprintf (stderr, "Failed to initialize Vulkan device!\n");
exit( 1 );
}
vblank_init();
currentOutputWidth = g_nOutputWidth;