Use surface.get_preferred_format()
to prevent crashes on wayland with nvidia cards.
#4995
Labels
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
O-Linux
Specific to the Linux desktop operating system
What problem does this solve or what need does it fill?
Currently bevy usee hardcoded sRGB surface format which is not (yet) supported by nvidia on linux.
What solution would you like?
Straight forward solution is to request GPUs' prefered surface format which will use best available on each platform.
What alternative(s) have you considered?
Perhaps we could wait months or even years until nvidia decides on adding sRGB support on Wayland.
Additional context
None.
The text was updated successfully, but these errors were encountered: