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
|
|
@ -100,11 +100,11 @@ public:
|
|||
|
||||
if (m_DisplayLayer != nullptr) {
|
||||
[m_DisplayLayer release];
|
||||
}
|
||||
|
||||
// It appears to be necessary to run the event loop after destroying
|
||||
// the AVSampleBufferDisplayLayer to avoid issue #973.
|
||||
SDL_PumpEvents();
|
||||
// It appears to be necessary to run the event loop after destroying
|
||||
// the AVSampleBufferDisplayLayer to avoid issue #973.
|
||||
SDL_PumpEvents();
|
||||
}
|
||||
}}
|
||||
|
||||
static
|
||||
|
|
@ -333,7 +333,7 @@ public:
|
|||
}
|
||||
|
||||
// If we're using direct rendering, set up the AVSampleBufferDisplayLayer
|
||||
if (m_DirectRendering) {
|
||||
if (m_DirectRendering && !params->testOnly) {
|
||||
SDL_SysWMinfo info;
|
||||
|
||||
SDL_VERSION(&info.version);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue