summaryrefslogtreecommitdiff
path: root/indra/llwindow/llopenglview-objc.mm
diff options
context:
space:
mode:
authorBjoseph Wombat <bjoseph@vivox.com>2015-10-06 22:39:07 +0100
committerBjoseph Wombat <bjoseph@vivox.com>2015-10-06 22:39:07 +0100
commit9c4202f2f837601b76d1e04045a1914e1c974981 (patch)
tree30eadf8bd2fa12537d15a7b8eedca17321f767c9 /indra/llwindow/llopenglview-objc.mm
parent8aedbbda159344ed1af042e562c34ae5759a3b0d (diff)
parent17ff449ae6b2759f212daa4fd3de0a7ea2664866 (diff)
merged changes from viewer-xcode-7
Diffstat (limited to 'indra/llwindow/llopenglview-objc.mm')
-rw-r--r--indra/llwindow/llopenglview-objc.mm6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llwindow/llopenglview-objc.mm b/indra/llwindow/llopenglview-objc.mm
index 1c9160a42d..deb8cb90d8 100644
--- a/indra/llwindow/llopenglview-objc.mm
+++ b/indra/llwindow/llopenglview-objc.mm
@@ -239,7 +239,11 @@ attributedStringInfo getSegments(NSAttributedString *str)
{
[glContext setValues:(const GLint*)1 forParameter:NSOpenGLCPSwapInterval];
} else {
- [glContext setValues:(const GLint*)0 forParameter:NSOpenGLCPSwapInterval];
+ // 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];
}
mOldResize = false;