SDL2 X11 off screen rendering feature request

Hi all

I am on a Linux SBC and need to use the GPU calculation power without a Monitor connected (NAS with LCD), therefore i create a dummy hw accelerated X11 window with SDL_WINDOW_HIDDEN | SDL_WINDOW_OPENGL attribute after glDrawArrays i download the rendered frame and display it to the LCD on the NAS, but the problem is that SDL2 in SDL_x11modes.c fails with the xrandr display infos because there is no display connected, so my feature request is, if the SDL2 window has attribute hidden, ignore any xrandr display infos because of that and continue to create window and OpenGL(es) context.

here is my code https://github.com/AreaScout/Shader2LCD

RG

never mind, building SDL2 with –disable-video-x11-xrandr did the trick :slight_smile: