Fix output on secondary monitor by rendering via OpenGL#83
Fix output on secondary monitor by rendering via OpenGL#83literallylara wants to merge 1 commit intocomplexlogic:masterfrom
Conversation
|
The SDL Renderer API is just high level abstraction for lower level graphics APIs, including OpenGL and Vulkan. The flag When using the SDL Renderer API, you can set an environment variable SDL_RENDER_DRIVER=opengl flex-launcherPlease try that and let me know the result. |
|
Hmm I see. Please excuse my lack of experience with SDL. The environment variable you suggested unfortunately did not seem to have any effect. Perhaps the issue lies with gamescope. Or perhaps there is a way to tell SDL which monitor/index to use. I will experiment some more when I find the time. |
On my home server the primary screen is connected to a KVM and the secondary to my TV. With the standard settings (I assume it defaults to Vulkan then?) it renders a black screen on the secondary monitor. When compiled with
SDL_WINDOW_OPENGLit works as expected.I am starting flex-launcher via gamescope:
Possibly related: #45