Files
gridcraft/docs
msaulcandClaude Opus 5.5 768a8a79f3 Windows and monitors wider than 8192 pixels keep their surface instead of crashing
eframe's device descriptor asks for exactly 8192 pixels of texture side, whatever the GPU offers,
and the window's surface is a texture. A window stretched across monitors that add up to more
(1080 + 3440 + 3840 = 8360 pixels at 100 %) failed Surface::configure ("Requested was (8344,
1261), maximum extent for either dimension is 8192"), which wgpu treats as fatal, so GridCraft
closed. The mixed-DPI drag fixed in the previous commit hit the same limit.

Ask for the adapter's own largest texture side (16384 on DirectX 12 and Metal hardware), keeping
eframe's other requirements, on every native platform and before the DirectX 12 probe that checks
adapters against these limits. A smaller adapter is never asked for more than it has. Verified on
Windows 11 24H2: the 8360-pixel window crashed before and stays up now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-12 11:10:11 -06:00
..