I see, strange that it even compiles
then i guess you need to remove the code that calls GL_QUADS(e.g. create triangles instead of quads, in the ddnet code the code paths that use g_Config.m_GfxQuadAsTriangle will help you : https://github.com/ddnet/ddnet) and replace glOrhto with glOrthofddnet also has code paths for CONF_BACKEND_OPENGL_ES but it only supports GLES 3 right now
(<@572881769641279488_=5bquakenet=5d=20piie>)
Jupster: had few minutes on the topic again. As this device is using emuelec as linux distro, there's no x11 and no mesa, it's directly using the mali opengl es libraries
22:41
i guess it would also be easier to use GLES headers instead of #include "SDL_opengl.h"
Might find more potentially bugs