mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-29 20:27:05 -06:00
Follow-up to #4600, from its review. A start left OpenGL out whenever Direct3D 12 listed an adapter, and WARP, its software adapter, is always listed. So a GPU without a Direct3D 12 driver, which drew through OpenGL before, now drew on the CPU. An adapter that WGPU_ADAPTER_NAME named was left out too when it was an OpenGL one. OpenGL is now listed when Direct3D 12 lists no hardware adapter and when WGPU_ADAPTER_NAME is set. The Direct3D 12 check takes the shader compiler the window does (WGPU_DX12_COMPILER, else FXC).