./update_explain_layers.py --ddnet path/to/ddnet-repository
...src/engine/external/pnglite/version
as a source file for some reasons_SDLGLContextProfileMask
I want to know if SDL lets you easily detect if the default API request is GLES or OGL[2021-04-30 22:44:14][sdl]: SDL version 2.0.14 (compiled = 2.0.14)
Thread 1 "DDNet" hit Breakpoint 1, CGraphicsBackend_SDL_OpenGL::Init (this=0x555555b07f80, pName=0x5555557d59c4 "DDNet Client", Screen=0x555555a29264 <g_Config+3876>, pWidth=0x555555a29268 <g_Config+3880>,
pHeight=0x555555a2926c <g_Config+3884>, FsaaSamples=0, Flags=1, pDesktopWidth=0x7ffff4a9e028, pDesktopHeight=0x7ffff4a9e02c, pCurrentWidth=0x7ffff4a9e020, pCurrentHeight=0x7ffff4a9e024,
pStorage=0x555555ad8910) at /home/scrumplex/ddnet/src/engine/client/backend_sdl.cpp:4368
4368 if(g_Config.m_GfxOpenGLMajor == 1)
(gdb) p (int) s_SDLGLContextProfileMask
$1 = 0
(gdb)
(edited)malloc_consolidate(): unaligned fastbin chunk detected
--Type <RET> for more, q to quit, c to continue without paging--
Thread 1 "DDNet" received signal SIGABRT, Aborted.
0x00007ffff6ddcef5 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff6ddcef5 in raise () at /usr/lib/libc.so.6
#1 0x00007ffff6dc6862 in abort () at /usr/lib/libc.so.6
#2 0x00007ffff6e1ef38 in __libc_message () at /usr/lib/libc.so.6
#3 0x00007ffff6e26bea in () at /usr/lib/libc.so.6
#4 0x00007ffff6e27c94 in malloc_consolidate () at /usr/lib/libc.so.6
#5 0x00007ffff6e284a0 in _int_free () at /usr/lib/libc.so.6
#6 0x00007ffff6e2bca8 in free () at /usr/lib/libc.so.6
#7 0x00005555557a0237 in CHeap::Clear() (this=0x555555a210b0 <gs_Voting+16>) at /home/scrumplex/ddnet/src/engine/shared/memheap.cpp:71
#8 0x00005555557a0191 in CHeap::~CHeap() (this=0x555555a210b0 <gs_Voting+16>, __in_chrg=<optimized out>) at /home/scrumplex/ddnet/src/engine/shared/memheap.cpp:53
#9 0x00005555556da101 in CVoting::~CVoting() (this=0x555555a210a0 <gs_Voting>, __in_chrg=<optimized out>) at /home/scrumplex/ddnet/src/game/client/components/voting.h:12
#10 0x00007ffff6ddf697 in __run_exit_handlers () at /usr/lib/libc.so.6
#11 0x00007ffff6ddf83e in () at /usr/lib/libc.so.6
#12 0x00007ffff6dc7b2c in __libc_start_main () at /usr/lib/libc.so.6
#13 0x000055555557a3de in _start ()
(gdb)
env SDL_VIDEOBACKEND=x11 ./DDNet