diff options
| author | mobserveur <mobserveur@gmail.com> | 2025-09-18 13:05:15 +0200 |
|---|---|---|
| committer | mobserveur <mobserveur@gmail.com> | 2025-09-18 13:05:15 +0200 |
| commit | 5955a18ebb005d6f4d2057efbca0b46262541346 (patch) | |
| tree | baff98d7b931347ee687cd0d14fbfa287d6efd77 | |
| parent | 7aa203297435674b7b598eb2764a6db7edbb4bc3 (diff) | |
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.
| -rw-r--r-- | indra/llwindow/llopenglview-objc.mm | 6 |
1 files 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]; |
