GHOST: Fix SDL backend.

We use a hidden window for each offscreen context we need.

On X11 (linux) it does not show any other windows in the OS task bar
but it might be the case on other operating systems (untested).
This commit is contained in:
Clément Foucault
2018-07-27 16:28:44 +02:00
parent 70966af513
commit 60499ff25d
6 changed files with 58 additions and 4 deletions

View File

@@ -297,7 +297,9 @@ GHOST_TSuccess GHOST_System::getButtonState(GHOST_TButtonMask mask, bool& isDown
#ifdef WITH_INPUT_NDOF
void GHOST_System::setNDOFDeadZone(float deadzone)
{
this->m_ndofManager->setDeadZone(deadzone);
if (this->m_ndofManager) {
this->m_ndofManager->setDeadZone(deadzone);
}
}
#endif