mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Revert "Merge pull request #1771 from Xenkhan/master"
This reverts commit9667dd051c
, reversing changes made tof52e06fc19
.
This commit is contained in:
parent
87d9a4ff0b
commit
9c78364c45
2 changed files with 8 additions and 22 deletions
|
@ -48,7 +48,6 @@
|
|||
Bug #4459: NotCell dialogue condition doesn't support partial matches
|
||||
Bug #4461: "Open" spell from non-player caster isn't a crime
|
||||
Bug #4469: Abot Silt Striders – Model turn 90 degrees on horizontal
|
||||
Bug #4471: Retrieve SDL window settings instead of using magic numbers
|
||||
Bug #4474: No fallback when getVampireHead fails
|
||||
Bug #4475: Scripted animations should not cause movement
|
||||
Feature #3276: Editor: Search- Show number of (remaining) search results and indicate a search without any results
|
||||
|
|
|
@ -381,33 +381,20 @@ void OMW::Engine::createWindow(Settings::Manager& settings)
|
|||
setWindowIcon();
|
||||
|
||||
osg::ref_ptr<osg::GraphicsContext::Traits> traits = new osg::GraphicsContext::Traits;
|
||||
int redSize;
|
||||
int greenSize;
|
||||
int blueSize;
|
||||
int depthSize;
|
||||
int stencilSize;
|
||||
int doubleBuffer;
|
||||
|
||||
SDL_GL_GetAttribute(SDL_GL_RED_SIZE, &redSize);
|
||||
SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE, &greenSize);
|
||||
SDL_GL_GetAttribute(SDL_GL_BLUE_SIZE, &blueSize);
|
||||
SDL_GL_GetAttribute(SDL_GL_DEPTH_SIZE, &depthSize);
|
||||
SDL_GL_GetAttribute(SDL_GL_STENCIL_SIZE, &stencilSize);
|
||||
SDL_GL_GetAttribute(SDL_GL_DOUBLEBUFFER, &doubleBuffer);
|
||||
|
||||
SDL_GetWindowPosition(mWindow, &traits->x, &traits->y);
|
||||
SDL_GetWindowSize(mWindow, &traits->width, &traits->height);
|
||||
traits->red = redSize;
|
||||
traits->green = greenSize;
|
||||
traits->blue = blueSize;
|
||||
traits->depth = depthSize;
|
||||
traits->stencil = stencilSize;
|
||||
traits->doubleBuffer = doubleBuffer;
|
||||
traits->windowName = SDL_GetWindowTitle(mWindow);
|
||||
traits->windowDecoration = !(SDL_GetWindowFlags(mWindow)&SDL_WINDOW_BORDERLESS);
|
||||
traits->screenNum = SDL_GetWindowDisplayIndex(mWindow);
|
||||
traits->vsync = vsync;
|
||||
// FIXME: Some way to get these settings back from the SDL window?
|
||||
traits->red = 8;
|
||||
traits->green = 8;
|
||||
traits->blue = 8;
|
||||
traits->alpha = 0; // set to 0 to stop ScreenCaptureHandler reading the alpha channel
|
||||
traits->depth = 24;
|
||||
traits->stencil = 8;
|
||||
traits->vsync = vsync;
|
||||
traits->doubleBuffer = true;
|
||||
traits->inheritedWindowData = new SDLUtil::GraphicsWindowSDL2::WindowData(mWindow);
|
||||
|
||||
osg::ref_ptr<SDLUtil::GraphicsWindowSDL2> graphicsWindow = new SDLUtil::GraphicsWindowSDL2(traits);
|
||||
|
|
Loading…
Reference in a new issue