mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-12-06 14:04:01 -05:00
wgpu's OpenGL adapter has no device id and guesses its kind from its strings: every Intel GPU is "integrated". With no display known (Remote Desktop), an Intel discrete GPU's OpenGL adapter therefore outranked its own Direct3D 12 adapter, was declined, and the app fell back to glow although Direct3D 12 worked (CodeRabbit). An OpenGL adapter now comes after any other adapter of the same vendor, matched by vendor since OpenGL has no device id, before kinds are compared. An OpenGL-only GPU still beats the software adapter, whose vendor is Microsoft. The test now models wgpu's OpenGL adapters as wgpu reports them: the vendor's id, device 0 and the guessed kind. Co-Authored-By: Claude Opus 5.5 <[email protected]>