Skip to content

Commit

Permalink
Bites: add hacky workaround for black window on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Dec 19, 2018
1 parent b16e377 commit 45ccacb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Components/Bites/src/OgreApplicationContext.cpp
Expand Up @@ -798,6 +798,15 @@ void ApplicationContext::pollEvents()
break;
}
}

# if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
// hacky workaround for black window on OSX
for(const auto& win : mWindows)
{
SDL_SetWindowSize(win.native, win.render->getWidth(), win.render->getHeight());
win.render->windowMovedOrResized();
}
# endif
#elif OGRE_PLATFORM == OGRE_PLATFORM_ANDROID
for(WindowList::iterator it = mWindows.begin(); it != mWindows.end(); ++it)
{
Expand Down

0 comments on commit 45ccacb

Please sign in to comment.