Warzone2100 / warzone2100

Command the forces of The Project in a battle to rebuild the world after mankind has been nearly destroyed by nuclear missiles. A 100% free and open source real-time strategy game for Windows, macOS, Linux, BSD+
https://wz2100.net
GNU General Public License v2.0
3.15k stars 522 forks source link

Vulkan API not working through Snap package #1564

Open LiamDawe opened 3 years ago

LiamDawe commented 3 years ago

Describe the bug Tried out the 4.0 Beta, switched to Vulkan in the options and then it doesn't launch.

Terminal output:

[liam@liam-pc ~]$ warzone2100 error |12:43:36: [_initialize:2806] pickPhysicalDevice failed: vk::Instance::enumeratePhysicalDevices: ErrorInitializationFailed fatal |12:43:36: [shouldResetGfxBackendPrompt:1962] Failed to display message box fatal |12:43:36: [wzMainScreenSetup:2515] gfx_api::context::get().initialize failed for backend: vulkan

Your System:

I tested also building via source, that works fine. So it's something specific to the Snap.

past-due commented 3 years ago

Looks like you are hitting two issues:

You can manually reset the graphics backend using the following command-line option: warzone2100 --gfxbackend=opengl