ddnet/src/engine/shared
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
..
compression.cpp Run clang-format 2020-09-26 21:50:15 +02:00
compression.h Made int packing functions safe 2017-09-17 02:36:50 +02:00
config.cpp CConfig: Use str_escape in EscapeParam() 2021-01-16 03:20:57 +03:00
config.h Port CConfig API from the upstream (0.7.5) 2021-01-10 17:10:19 +03:00
config_variables.h Add GLES support 2021-05-01 01:39:37 +02:00
console.cpp More colors from chat in console 2021-03-08 01:20:28 +01:00
console.h More colors from chat in console 2021-03-08 01:20:28 +01:00
csv.cpp Add a simple CSV writer for Python's "excel" csv dialect 2020-06-23 09:11:59 +02:00
csv.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
datafile.cpp Fix duplicate uuid index in maps edited by tools 2021-05-03 12:02:18 +02:00
datafile.h Fix duplicate uuid index in maps edited by tools 2021-05-03 12:02:18 +02:00
demo.cpp Add color for non chat(binds, ghost, client, demo) 2021-03-08 18:39:25 +01:00
demo.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
econ.cpp More colors from chat in console 2021-03-08 01:20:28 +01:00
econ.h More colors from chat in console 2021-03-08 01:20:28 +01:00
engine.cpp Run clang-format 2020-09-26 21:50:15 +02:00
fifo.cpp Remove fifo file on shutdown 2021-02-21 17:31:25 +01:00
fifo.h Remove fifo file on shutdown 2021-02-21 17:31:25 +01:00
filecollection.cpp Run clang-format 2020-09-26 21:50:15 +02:00
filecollection.h Make sure headers compile standalone 2020-09-26 21:50:27 +02:00
global_uuid_manager.cpp Move teehistorian UUIDs into engine 2018-01-11 16:01:13 +01:00
huffman.cpp Run clang-format 2020-09-26 21:50:15 +02:00
huffman.h Run clang-format 2020-09-26 21:50:15 +02:00
image_manipulation.cpp Update missing file from dilate 2021-02-13 14:04:42 +01:00
image_manipulation.h lower alpha threshold 2021-02-03 20:05:02 +01:00
jobs.cpp Run clang-format 2020-09-26 21:50:15 +02:00
jobs.h Add Thread Safety Analysis 2020-12-23 18:13:21 +01:00
json.cpp Run clang-format 2020-09-26 21:50:15 +02:00
json.h Run clang-format 2020-09-26 21:50:15 +02:00
kernel.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
linereader.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
linereader.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
map.cpp Add menu background map 2020-09-23 23:38:28 +02:00
map.h Add menu background map 2020-09-23 23:38:28 +02:00
masterserver.cpp Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
memheap.cpp Run clang-format 2020-09-26 21:50:15 +02:00
memheap.h Run clang-format 2020-09-26 21:50:15 +02:00
message.h Updated copyrights 2010-11-20 21:26:06 +01:00
netban.cpp Increase max ban duration from 1 month to 1 year 2021-03-08 18:15:00 +01:00
netban.h Banned for life -> Banned 2021-03-19 15:02:28 +01:00
network.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
network.h Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
network_client.cpp Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
network_conn.cpp Allow utf8 ban reasons (fixes #3329) 2020-11-18 14:42:12 +01:00
network_console.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
network_console_conn.cpp Run clang-format 2020-09-26 21:50:15 +02:00
network_server.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
packer.cpp Run clang-format 2020-09-26 21:50:15 +02:00
packer.h Run clang-format 2020-09-26 21:50:15 +02:00
protocol.h Bump version for the new protocol to DDNet 15.4 2021-02-24 17:09:39 +01:00
protocol_ex.cpp Run clang-format 2020-09-26 21:50:15 +02:00
protocol_ex.h Remove F-Client-specific messages 2021-01-12 01:38:23 +01:00
protocol_ex_msgs.h Run clang-format 2020-09-26 21:50:15 +02:00
ringbuffer.cpp Run clang-format 2020-09-26 21:50:15 +02:00
ringbuffer.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
serverbrowser.cpp Run clang-format 2020-09-26 21:50:15 +02:00
snapshot.cpp Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
snapshot.h Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
storage.cpp Copied Teeworld patches for the Haiku operating system 2021-04-17 20:10:56 +02:00
teehistorian_ex.cpp Run clang-format 2020-09-26 21:50:15 +02:00
teehistorian_ex.h Run clang-format 2020-09-26 21:50:15 +02:00
teehistorian_ex_chunks.h Run clang-format 2020-09-26 21:50:15 +02:00
uuid_manager.cpp Allow ParseUuid to report errors and add tests 2021-01-23 01:21:20 +01:00
uuid_manager.h Allow ParseUuid to report errors and add tests 2021-01-23 01:21:20 +01:00
video.cpp Run clang-format 2020-09-26 21:50:15 +02:00
video.h Run clang-format 2020-09-26 21:50:15 +02:00
websockets.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
websockets.h Make sure headers compile standalone 2020-09-26 21:50:27 +02:00