mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
Part of #2654. On Linux and the BSDs, when no graphics adapter could show the window (no wgpu backend started, or the restarts left no adapter), the app ended. It now starts once more with LIBGL_ALWAYS_SOFTWARE=1 and VECTORCRAFT_GPU_SOFTWARE=1 and says in the status bar that it draws on the CPU. When that start also fails, or on Windows and macOS, or with WGPU_BACKEND, WGPU_ADAPTER_NAME or LIBGL_ALWAYS_SOFTWARE set, the error names the backends the driver needs. wgpu draws with Vulkan, OpenGL 3.3 or OpenGL ES 3.0. Intel's Ironlake graphics (8086:0046) has OpenGL 2.1 alone, so the window's surface failed with "Failed to create surface for any enabled backend: {}" before any adapter was listed, and gpu::finish restarted only without an adapter that had been picked.