Create the SystemProperties test window on the main thread

This commit is contained in:
Cameron Gutman
2026-01-25 17:10:04 -06:00
parent 05ef938e2c
commit 64fea80ac9
6 changed files with 89 additions and 60 deletions
@@ -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)) {