Co-authored-by: Marshall Mohror <mohror64@gmail.com>
This fixes crash when hardware shader is enabled in the flatpak version