Move Vulkan init into main
Some Wayland server setup will need Vulkan initialized.
This commit is contained in:
parent
202915271e
commit
49e0cc046e
2 changed files with 6 additions and 6 deletions
|
@ -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");
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue