Commit graph

16 commits

Author SHA1 Message Date
Unknown W. Brackets
edbefa8ee2 SDL: Adjust EGL config choice heuristics.
See #12049:
 * Require EGL_WINDOW_BIT more strongly.
 * Allow EGL_NON_CONFORMANT_CONFIG (but still not EGL_SLOW_CONFIG.)
2019-06-10 17:43:16 -07:00
Unknown W. Brackets
ff9911deb5 SDL: Fix compile error when not using FBDEV. 2019-03-23 07:26:47 -07:00
Henrik Rydgård
d7f3f15b85 Add missing line to SDL EGL init (no way this path could have worked anywhere?) 2019-02-27 11:26:31 +01:00
Henrik Rydgård
e715fe0382 EGL errors should cause us to bail. Also downweight alpha in the EGL config chooser. See #11839 2019-02-27 10:33:36 +01:00
Henrik Rydgård
b8e56b361e EGL: Avoid HDR mode. Uses unknownbrackets' changes from #11839. 2019-02-26 08:57:51 +01:00
Unknown W. Brackets
b4496f1975 Core: Move config enums to separate file.
These are a bit strewn about and there are constants that aren't
consistently used, which just adds confusion.
2018-06-23 10:59:18 -07:00
Unknown W. Brackets
1b41759051 SDL: Avoid alpha on Mali/ARM devices using GLES.
See #10534.
2018-06-16 16:19:17 -07:00
hissingshark
84273ff5eb SDL: Buildfixes for EGL lookup. 2018-06-16 16:12:43 -07:00
Unknown W. Brackets
3b8a847654 SDL: Allow more EGL configs.
This attempts to choose the "best" config using weights.
2018-06-16 16:12:43 -07:00
Unknown W. Brackets
9be20323ef SDL: Start with window hidden.
This fixes start in fullscreen on Mac.  Otherwise, it animates to
fullscreen and back for every GL init attempt.
2018-06-09 16:57:00 -07:00
Unknown W. Brackets
a7023ac542 SDL: Move EGL init code into SDLGLGraphicsContext.
It should really be cleaned up, but I'm not sure if EGL_Open can be
moved later and don't currently have a setup to test, so I'm just
cargo culting.
2018-06-05 23:02:50 -07:00
Unknown W. Brackets
78a41980df SDL: Use fullscreen for mobile/GLES.
Also, allow resize for Vulkan outside mobile.

Thanks go to hissingshark.
2018-06-05 20:40:58 -07:00
Unknown W. Brackets
f2a75719d8 SDL: Properly try multiple GL versions.
Thanks go to hissingshark.
2018-06-05 20:40:50 -07:00
Henrik Rydgård
4b4a2a4096 Buildfixes 2018-02-25 11:25:16 +01:00
Henrik Rydgård
99386da01e Minor cleanups 2018-02-04 13:42:04 +01:00
Henrik Rydgård
85446d6c51 Split the SDL graphics contexts into their own files. 2018-02-04 13:42:04 +01:00