Create the SystemProperties test window on the main thread
This commit is contained in:
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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue