mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 22:50:57 +00:00
Create the SystemProperties test window on the main thread
This commit is contained in:
@@ -140,6 +140,14 @@ bool SdlRenderer::initialize(PDECODER_PARAMETERS params)
|
||||
return false;
|
||||
}
|
||||
|
||||
// Don't create a renderer or pump events for test-only
|
||||
// renderers. Test-only renderers might be created on
|
||||
// a non-main thread where interaction with the SDL
|
||||
// render API is unsafe.
|
||||
if (params->testOnly) {
|
||||
return true;
|
||||
}
|
||||
|
||||
SDL_SysWMinfo info;
|
||||
SDL_VERSION(&info.version);
|
||||
if (!SDL_GetWindowWMInfo(params->window, &info)) {
|
||||
|
||||
Reference in New Issue
Block a user