From 5955a18ebb005d6f4d2057efbca0b46262541346 Mon Sep 17 00:00:00 2001 From: mobserveur Date: Thu, 18 Sep 2025 13:05:15 +0200 Subject: Reactivation of vsync when the context is created This commit reactivates vsync when the context is created, if the user chose this option. This was disabled for testing purpose. --- indra/llwindow/llopenglview-objc.mm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/indra/llwindow/llopenglview-objc.mm b/indra/llwindow/llopenglview-objc.mm index bbdb176560..e01da47618 100644 --- a/indra/llwindow/llopenglview-objc.mm +++ b/indra/llwindow/llopenglview-objc.mm @@ -287,7 +287,7 @@ attributedStringInfo getSegments(NSAttributedString *str) //NSOpenGLPFASamples, 0, NSOpenGLPFADepthSize, 24, //NSOpenGLPFAAlphaSize, 8, - NSOpenGLPFAColorSize, 24, + NSOpenGLPFAColorSize, 32, NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion4_1Core, 0 }; @@ -368,7 +368,6 @@ attributedStringInfo getSegments(NSAttributedString *str) [glContext makeCurrentContext]; -/* if (vsync) { GLint value = 1; @@ -376,13 +375,12 @@ attributedStringInfo getSegments(NSAttributedString *str) } else { - */ // supress this error after move to Xcode 7: // error: null passed to a callee that requires a non-null argument [-Werror,-Wnonnull] // Tried using ObjC 'nonnull' keyword as per SO article but didn't build GLint swapInterval = 0; [glContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval]; - //} + } GLint opacity = 1; [glContext setValues:&opacity forParameter:NSOpenGLCPSurfaceOpacity]; -- cgit v1.2.3