summaryrefslogtreecommitdiff
path: root/indra/llwindow
diff options
context:
space:
mode:
authorRunitaiLinden <davep@lindenlab.com>2023-12-06 11:58:45 -0600
committerRunitaiLinden <davep@lindenlab.com>2023-12-06 11:58:45 -0600
commit300d7629d8bbd02844a5380cc97aae2d229fdf0a (patch)
treee9635fc02c657289e218c3d6d0337bf73a8486a2 /indra/llwindow
parentb4f6c5e2e8a9b29bc5ae9ed60df35321befaf834 (diff)
SL-20664 Potential fix for crash on startup in switchContext
Diffstat (limited to 'indra/llwindow')
-rw-r--r--indra/llwindow/llwindowwin32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp
index 42ec4ee29d..057d7a700e 100644
--- a/indra/llwindow/llwindowwin32.cpp
+++ b/indra/llwindow/llwindowwin32.cpp
@@ -1929,7 +1929,7 @@ void LLWindowWin32::toggleVSync(bool enable_vsync)
LL_INFOS("Window") << "Disabling vertical sync" << LL_ENDL;
wglSwapIntervalEXT(0);
}
- else
+ else if (wglSwapIntervalEXT)
{
LL_INFOS("Window") << "Enabling vertical sync" << LL_ENDL;
wglSwapIntervalEXT(1);