mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Merge remote-tracking branch 'sandstranger/fix-errors-in-creating-sdl-window-for-nvidia-tegra3'
This commit is contained in:
commit
ef8b23485e
1 changed files with 2 additions and 4 deletions
6
extern/sdl4ogre/sdlwindowhelper.cpp
vendored
6
extern/sdl4ogre/sdlwindowhelper.cpp
vendored
|
@ -27,7 +27,6 @@ SDLWindowHelper::SDLWindowHelper (SDL_Window* window, int w, int h,
|
|||
throw std::runtime_error("Couldn't get WM Info!");
|
||||
|
||||
Ogre::String winHandle;
|
||||
Ogre::String winHandleSurface;
|
||||
|
||||
switch (wmInfo.subsystem)
|
||||
{
|
||||
|
@ -46,8 +45,6 @@ SDLWindowHelper::SDLWindowHelper (SDL_Window* window, int w, int h,
|
|||
#elif ANDROID
|
||||
case SDL_SYSWM_ANDROID:
|
||||
winHandle = Ogre::StringConverter::toString((unsigned long)wmInfo.info.android.window);
|
||||
winHandleSurface = Ogre::StringConverter::toString((unsigned long)wmInfo.info.android.surface);
|
||||
|
||||
break;
|
||||
#else
|
||||
case SDL_SYSWM_X11:
|
||||
|
@ -63,7 +60,8 @@ SDLWindowHelper::SDLWindowHelper (SDL_Window* window, int w, int h,
|
|||
/// to work properly. On Linux/X11 it causes an occasional GLXBadDrawable error.
|
||||
|
||||
#ifdef ANDROID
|
||||
params.insert(std::make_pair("externalSurface", winHandleSurface));
|
||||
SDL_GLContext context= SDL_GL_CreateContext(window);
|
||||
params.insert(std::make_pair("currentGLContext","True"));
|
||||
#endif
|
||||
params.insert(std::make_pair("externalWindowHandle", winHandle));
|
||||
|
||||
|
|
Loading…
Reference in a new issue