From fce9e318b896d0298b2633611f9ea83e96a1d678 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Tue, 11 Aug 2020 18:22:42 -0400 Subject: [PATCH] Clean up a few warnings in SDL2 code --- indra/llwindow/llwindowsdl.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp index 537845291f4..d6c7bb8d14b 100644 --- a/indra/llwindow/llwindowsdl.cpp +++ b/indra/llwindow/llwindowsdl.cpp @@ -739,22 +739,6 @@ BOOL LLWindowSDL::createContext(int x, int y, int width, int height, int bits, B } #endif // LL_X11 - int r, g, b, a, d, s; - SDL_GL_GetAttribute(SDL_GL_RED_SIZE, &r); - SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE, &g); - SDL_GL_GetAttribute(SDL_GL_BLUE_SIZE, &b); - SDL_GL_GetAttribute(SDL_GL_ALPHA_SIZE, &a); - SDL_GL_GetAttribute(SDL_GL_DEPTH_SIZE, &d); - SDL_GL_GetAttribute(SDL_GL_STENCIL_SIZE, &s); - - LL_INFOS() << "GL buffer:" << LL_ENDL; - LL_INFOS() << " Red Bits " << r << LL_ENDL; - LL_INFOS() << " Green Bits " << g << LL_ENDL; - LL_INFOS() << " Blue Bits " << b << LL_ENDL; - LL_INFOS() << " Alpha Bits " << a << LL_ENDL; - LL_INFOS() << " Depth Bits " << d << LL_ENDL; - LL_INFOS() << " Stencil Bits " << s << LL_ENDL; - // make sure multisampling is disabled by default glDisable(GL_MULTISAMPLE_ARB); @@ -1251,11 +1235,6 @@ F32 LLWindowSDL::getPixelAspectRatio() // dialogs are still usable in fullscreen. void LLWindowSDL::beforeDialog() { - bool running_x11 = false; -#if LL_X11 - running_x11 = (mSDL_XWindowID != None); -#endif //LL_X11 - LL_INFOS() << "LLWindowSDL::beforeDialog()" << LL_ENDL; if (SDLReallyCaptureInput(FALSE)) // must ungrab input so popup works! @@ -1290,11 +1269,6 @@ void LLWindowSDL::beforeDialog() void LLWindowSDL::afterDialog() { - bool running_x11 = false; -#if LL_X11 - running_x11 = (mSDL_XWindowID != None); -#endif //LL_X11 - LL_INFOS() << "LLWindowSDL::afterDialog()" << LL_ENDL; if (mFullscreen) -- GitLab