diff options
author | McCabe Maxsted | 2011-03-24 21:01:48 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-03-24 21:01:48 -0700 |
commit | f47c5d9af5780b2e6bd9b5b66622c565aa03b168 (patch) | |
tree | b430fd9ec59190a2535258f580b951f144ab9057 /linden | |
parent | Merge remote-tracking branch 'armin/exp' into exp (diff) | |
parent | Fix #824/SNOW-466: Window Creation Error related to FSAA (diff) | |
download | meta-impy-f47c5d9af5780b2e6bd9b5b66622c565aa03b168.zip meta-impy-f47c5d9af5780b2e6bd9b5b66622c565aa03b168.tar.gz meta-impy-f47c5d9af5780b2e6bd9b5b66622c565aa03b168.tar.bz2 meta-impy-f47c5d9af5780b2e6bd9b5b66622c565aa03b168.tar.xz |
Merge remote-tracking branch 'thickbrick/exp' into exp
Diffstat (limited to 'linden')
-rw-r--r-- | linden/doc/contributions.txt | 1 | ||||
-rw-r--r-- | linden/indra/llwindow/llwindowsdl.cpp | 9 | ||||
-rw-r--r-- | linden/indra/newview/llviewerwindow.cpp | 7 |
3 files changed, 17 insertions, 0 deletions
diff --git a/linden/doc/contributions.txt b/linden/doc/contributions.txt index 8aab5c8..6a41ddf 100644 --- a/linden/doc/contributions.txt +++ b/linden/doc/contributions.txt | |||
@@ -528,6 +528,7 @@ Robin Cornelius | |||
528 | SNOW-108 | 528 | SNOW-108 |
529 | SNOW-196 | 529 | SNOW-196 |
530 | SNOW-422 | 530 | SNOW-422 |
531 | SNOW-466 | ||
531 | SNOW-485 | 532 | SNOW-485 |
532 | VWR-2488 | 533 | VWR-2488 |
533 | VWR-9557 | 534 | VWR-9557 |
diff --git a/linden/indra/llwindow/llwindowsdl.cpp b/linden/indra/llwindow/llwindowsdl.cpp index edfe33b..2f9de6b 100644 --- a/linden/indra/llwindow/llwindowsdl.cpp +++ b/linden/indra/llwindow/llwindowsdl.cpp | |||
@@ -632,6 +632,15 @@ BOOL LLWindowSDL::createContext(int x, int y, int width, int height, int bits, B | |||
632 | mWindow = SDL_SetVideoMode(width, height, bits, sdlflags); | 632 | mWindow = SDL_SetVideoMode(width, height, bits, sdlflags); |
633 | } | 633 | } |
634 | 634 | ||
635 | while (!mWindow && mFSAASamples > 0) | ||
636 | { | ||
637 | llwarns << "Window creating failed with " << mFSAASamples << "x FSAA."<<llendl; | ||
638 | mFSAASamples = mFSAASamples>>1; | ||
639 | SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, mFSAASamples ? 1 : 0); | ||
640 | SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, mFSAASamples); | ||
641 | mWindow = SDL_SetVideoMode(width, height, bits, sdlflags); | ||
642 | } | ||
643 | |||
635 | if (!mWindow) | 644 | if (!mWindow) |
636 | { | 645 | { |
637 | llwarns << "createContext: window creation failure. SDL: " << SDL_GetError() << llendl; | 646 | llwarns << "createContext: window creation failure. SDL: " << SDL_GetError() << llendl; |
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp index 6ef9982..c4d5e58 100644 --- a/linden/indra/newview/llviewerwindow.cpp +++ b/linden/indra/newview/llviewerwindow.cpp | |||
@@ -1278,6 +1278,13 @@ LLViewerWindow::LLViewerWindow( | |||
1278 | LLAppViewer::instance()->forceExit(1); | 1278 | LLAppViewer::instance()->forceExit(1); |
1279 | } | 1279 | } |
1280 | 1280 | ||
1281 | const U32 real_fsaa = mWindow->getFSAASamples(); | ||
1282 | if (real_fsaa != gSavedSettings.getU32("RenderFSAASamples")) | ||
1283 | { | ||
1284 | LL_WARNS("Window") << "Window created with reduced anti-aliasing samples: " << real_fsaa << "x FSAA." << LL_ENDL; | ||
1285 | gSavedSettings.setU32("RenderFSAASamples", real_fsaa); | ||
1286 | } | ||
1287 | |||
1281 | // Get the real window rect the window was created with (since there are various OS-dependent reasons why | 1288 | // Get the real window rect the window was created with (since there are various OS-dependent reasons why |
1282 | // the size of a window or fullscreen context may have been adjusted slightly...) | 1289 | // the size of a window or fullscreen context may have been adjusted slightly...) |
1283 | F32 ui_scale_factor = gSavedSettings.getF32("UIScaleFactor"); | 1290 | F32 ui_scale_factor = gSavedSettings.getF32("UIScaleFactor"); |