ddnet/src/base
bors[bot] 97ab2c6c01
Merge #3798
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>
2021-05-06 09:50:26 +00:00
..
tl Switch back to using a stable sort 2021-03-15 23:36:25 +01:00
unicode Run clang-format 2020-09-26 21:50:15 +02:00
color.h Run clang-format 2020-09-26 21:50:15 +02:00
detect.h Allow GLES3 coexists with OpenGL on Linux 2021-05-02 04:39:02 +02:00
dynamic.h Run clang-format 2020-09-26 21:50:15 +02:00
hash.c Use OpenSSL md5 if it is available 2019-04-06 02:56:29 +02:00
hash.h Run clang-format 2020-09-26 21:50:15 +02:00
hash_bundled.c Run clang-format 2020-09-26 21:50:15 +02:00
hash_ctxt.h Run clang-format 2020-09-26 21:50:15 +02:00
hash_libtomcrypt.c Run clang-format 2020-09-26 21:50:15 +02:00
hash_openssl.c Use OpenSSL md5 if it is available 2019-04-06 02:56:29 +02:00
math.h Run clang-format 2020-09-26 21:50:15 +02:00
system.c Compress IPv6 string representations according to RFC5952 2021-05-05 18:22:52 +02:00
system.h Copied Teeworld patches for the Haiku operating system 2021-04-17 20:10:56 +02:00
vmath.h Backport vector functions cleanup from the upstream 2021-01-16 03:20:57 +03:00