diff options
Diffstat (limited to 'games-simulation/secondlife/files/llwindowssdl_16bit_depth.patch')
-rw-r--r-- | games-simulation/secondlife/files/llwindowssdl_16bit_depth.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/games-simulation/secondlife/files/llwindowssdl_16bit_depth.patch b/games-simulation/secondlife/files/llwindowssdl_16bit_depth.patch deleted file mode 100644 index 9b90e70..0000000 --- a/games-simulation/secondlife/files/llwindowssdl_16bit_depth.patch +++ /dev/null @@ -1,35 +0,0 @@ -Index: llwindowsdl.cpp -=================================================================== -RCS file: /home/david/src/.cvs/programming/SecondLife/linden/indra/llwindow/llwindowsdl.cpp,v -retrieving revision 1.1 -diff -u -r1.1 llwindowsdl.cpp ---- llwindowsdl.cpp 28 Feb 2007 04:43:12 -0000 1.1 -+++ llwindowsdl.cpp 28 Feb 2007 04:52:45 -0000 -@@ -393,6 +393,13 @@ - } - - mWindow = SDL_SetVideoMode(width, height, bits, sdlflags | SDL_FULLSCREEN); -+ if (!mWindow) -+ { -+ llwarns << "createContext: window creation failure. SDL: " << SDL_GetError() << llendl; -+ llwarns << "createContext: Trying again with 16 bit depth buffer" << llendl; -+ SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16); -+ mWindow = SDL_SetVideoMode(width, height, bits, sdlflags); -+ } - - if (mWindow) - { -@@ -435,6 +442,13 @@ - - llinfos << "createContext: creating window " << width << "x" << height << "x" << bits << llendl; - mWindow = SDL_SetVideoMode(width, height, bits, sdlflags); -+ if (!mWindow) -+ { -+ llwarns << "createContext: window creation failure. SDL: " << SDL_GetError() << llendl; -+ llwarns << "createContext: Trying again with 16 bit depth buffer" << llendl; -+ SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16); -+ mWindow = SDL_SetVideoMode(width, height, bits, sdlflags); -+ } - - if (!mWindow) - { |