mirror of
https://github.com/storytold/egui.git
synced 2026-11-22 10:32:02 +01:00
A window larger than max_texture_dimension_2d is configured at a fitted size and drawn at a matching scale instead of panicking in Surface::configure. Errors raised while the first surface is configured or the renderer is created are returned (WgpuError:: ConfigureSurface, CreateRenderer) so the app can fall back to another renderer. From PdfCraft's vendored egui-wgpu (storytold/pdfcraft#609, #617, #1042). Co-authored-by: jcl-bit <336218001+jcl-bit@users.noreply.github.com> Co-authored-by: aAffliu <164289069+huferyliu@users.noreply.github.com>