mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
97ab2c6c01
3798: Add GLES support r=def- a=Jupeyy I know i *****ed up, that i didnt move the files in a different commit, but when i noticed it was already too late. Its mostly disabling stuff that GLES doesn't support. Global LOD bias or glOrtho for examlpe. ~***Strong note***: This will move ALL linux implementation to GLES instead of GL, since GLES is supported by X11 and wayland, we probably want some testing for this. This also means, that the default for Linux gets GLES 3.0 which is equivalent to OpenGL 3.3, not OpenGL 3.0!!!~ ~If you wonder "why": Gles just works differently to OGL, it knows about all functions that exists, and e.g. doesn't require GLEW at all, but that also means, that GLES does NOT work while we use OGL, because GLEW would kill GLES.~ GLEW in EGL mode works fine with wayland, just requires X11 to use EGL too(SDL_VIDEO_X11_FORCE_EGL) _Additionally, for GLES only, only 3.0 and 1.0 context are supported._(doesn't matter anymore for linux) probably fixes: ~not_really_fixes #3797~ fixes #2885 And would also allow android support, if i ever get these build scripts upto date, or smby is interested into fixing them for me :D ## Checklist - [x] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test if it works standalone, system.c especially - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: Jupeyy <jupjopjap@gmail.com> |
||
---|---|---|
.. | ||
tl | ||
unicode | ||
color.h | ||
detect.h | ||
dynamic.h | ||
hash.c | ||
hash.h | ||
hash_bundled.c | ||
hash_ctxt.h | ||
hash_libtomcrypt.c | ||
hash_openssl.c | ||
math.h | ||
system.c | ||
system.h | ||
vmath.h |