diff options
| author | Ansariel Hiller <Ansariel@users.noreply.github.com> | 2024-09-04 21:24:14 +0200 | 
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2025-05-28 21:47:12 +0800 | 
| commit | 619fdda6279341fdb52f98c09c202cf038851a31 (patch) | |
| tree | bc5ba1e2e69e36848935c9ce0b49860ffa215fa9 | |
| parent | 031a29625d40215e8715e4eccac17578984c6907 (diff) | |
Fix name of vsync param in LLWindowSDL (#2502)
| -rw-r--r-- | indra/llwindow/llwindowsdl.cpp | 11 | ||||
| -rw-r--r-- | indra/llwindow/llwindowsdl.h | 6 | 
2 files changed, 8 insertions, 9 deletions
diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp index 079fca00c0..1f2b8aaac3 100644 --- a/indra/llwindow/llwindowsdl.cpp +++ b/indra/llwindow/llwindowsdl.cpp @@ -398,11 +398,10 @@ LLWindowSDL::LLWindowSDL(LLWindowCallbacks* callbacks,                           const std::string& title, S32 x, S32 y, S32 width,                           S32 height, U32 flags,                           bool fullscreen, bool clearBg, -                         bool disable_vsync, bool use_gl, +                         bool enable_vsync, bool use_gl,                           bool ignore_pixel_depth, U32 fsaa_samples)          : LLWindow(callbacks, fullscreen, flags),          Lock_Display(NULL), -        //Unlock_Display(NULL), mGamma(1.0f)          Unlock_Display(NULL), mGamma(1.0f)  {      // Initialize the keyboard @@ -439,7 +438,7 @@ LLWindowSDL::LLWindowSDL(LLWindowCallbacks* callbacks,          mWindowTitle = title;      // Create the GL context and set it up for windowed or fullscreen, as appropriate. -    if(createContext(x, y, width, height, 32, fullscreen, disable_vsync)) +    if(createContext(x, y, width, height, 32, fullscreen, enable_vsync))      {          gGLManager.initGL(); @@ -675,7 +674,7 @@ void LLWindowSDL::tryFindFullscreenSize( int &width, int &height )      }  } -bool LLWindowSDL::createContext(int x, int y, int width, int height, int bits, bool fullscreen, bool disable_vsync) +bool LLWindowSDL::createContext(int x, int y, int width, int height, int bits, bool fullscreen, bool enable_vsync)  {      //bool          glneedsinit = false; @@ -981,7 +980,7 @@ bool LLWindowSDL::createContext(int x, int y, int width, int height, int bits, b  // changing fullscreen resolution, or switching between windowed and fullscreen mode. -bool LLWindowSDL::switchContext(bool fullscreen, const LLCoordScreen &size, bool disable_vsync, const LLCoordScreen * const posp) +bool LLWindowSDL::switchContext(bool fullscreen, const LLCoordScreen &size, bool enable_vsync, const LLCoordScreen * const posp)  {      const bool needsRebuild = true;  // Just nuke the context and start over.      bool result = true; @@ -991,7 +990,7 @@ bool LLWindowSDL::switchContext(bool fullscreen, const LLCoordScreen &size, bool      if(needsRebuild)      {          destroyContext(); -        result = createContext(0, 0, size.mX, size.mY, 0, fullscreen, disable_vsync); +        result = createContext(0, 0, size.mX, size.mY, 0, fullscreen, enable_vsync);          if (result)          {              gGLManager.initGL(); diff --git a/indra/llwindow/llwindowsdl.h b/indra/llwindow/llwindowsdl.h index cdb8a888d5..36bdf0e80a 100644 --- a/indra/llwindow/llwindowsdl.h +++ b/indra/llwindow/llwindowsdl.h @@ -84,7 +84,7 @@ public:      bool setSizeImpl(LLCoordWindow size) override; -    bool switchContext(bool fullscreen, const LLCoordScreen &size, bool disable_vsync, +    bool switchContext(bool fullscreen, const LLCoordScreen &size, bool enable_vsync,                                     const LLCoordScreen *const posp = NULL) override;      bool setCursorPosition(LLCoordWindow position) override; @@ -222,7 +222,7 @@ public:  protected:      LLWindowSDL(LLWindowCallbacks *callbacks,                  const std::string &title, int x, int y, int width, int height, U32 flags, -                bool fullscreen, bool clearBg, bool disable_vsync, bool use_gl, +                bool fullscreen, bool clearBg, bool enable_vsync, bool use_gl,                  bool ignore_pixel_depth, U32 fsaa_samples);      ~LLWindowSDL(); @@ -251,7 +251,7 @@ protected:      //      // create or re-create the GL context/window.  Called from the constructor and switchContext(). -    bool createContext(int x, int y, int width, int height, int bits, bool fullscreen, bool disable_vsync); +    bool createContext(int x, int y, int width, int height, int bits, bool fullscreen, bool enable_vsync);      void destroyContext();  | 
