Commit 4b7b772
committed
Securize refresh rate selection
If the XR_FB_display_refresh_rate extension was available we assumed
that the API will always return a non empty list of supported refresh
rates. However in some particular configurations the extension might
appear as available but no refresh rates will be ever returned. That
could cause crashes due to assertions.
As this is an extension and not a critical piece of the main execution
path we should just report the error and bail out.
This was happening to me when trying to run the AOSP flavour in a
Quest device. With this fix Wolvic can be run in Quest devices even
with the AOSP flavour.1 parent b7c8d9b commit 4b7b772
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
499 | 503 | | |
500 | 504 | | |
501 | 505 | | |
| |||
733 | 737 | | |
734 | 738 | | |
735 | 739 | | |
736 | | - | |
| 740 | + | |
737 | 741 | | |
738 | 742 | | |
739 | 743 | | |
| |||
0 commit comments