diff options
author | AndreyL ProductEngine <andreylproductengine@lindenlab.com> | 2015-10-26 18:00:12 +0200 |
---|---|---|
committer | AndreyL ProductEngine <andreylproductengine@lindenlab.com> | 2015-10-26 18:00:12 +0200 |
commit | b0b8d34b15350f44d76f253e6b69f1c4e8ad7f33 (patch) | |
tree | c44c79822113376625b32060585d31227417d104 /indra/llwindow | |
parent | 35626b1511e90a271f757d3373a7d64ef66c2eb7 (diff) | |
parent | 17ff449ae6b2759f212daa4fd3de0a7ea2664866 (diff) |
Merged viewer-xcode-7
Diffstat (limited to 'indra/llwindow')
-rw-r--r-- | indra/llwindow/llopenglview-objc.mm | 6 |
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; |