diff options
author | Geenz <geenz@geenzo.com> | 2013-02-25 15:35:21 -0500 |
---|---|---|
committer | Geenz <geenz@geenzo.com> | 2013-02-25 15:35:21 -0500 |
commit | e19db5668853b7d3be2ed6af289a3c35bd213bca (patch) | |
tree | bec10696a0e00883bc29dbc34896f754b070f22f /indra/llwindow/llwindowmacosx-objc.mm | |
parent | 7ea8d2f6c00334eae2418cc1749e9d0219cdb80d (diff) |
Fix for antialiasing and VSync not being enabled properly.
Diffstat (limited to 'indra/llwindow/llwindowmacosx-objc.mm')
-rw-r--r-- | indra/llwindow/llwindowmacosx-objc.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llwindow/llwindowmacosx-objc.mm b/indra/llwindow/llwindowmacosx-objc.mm index b123ba0711..b288671219 100644 --- a/indra/llwindow/llwindowmacosx-objc.mm +++ b/indra/llwindow/llwindowmacosx-objc.mm @@ -214,9 +214,9 @@ NSWindowRef createNSWindow(int x, int y, int width, int height) return window; } -GLViewRef createOpenGLView(NSWindowRef window) +GLViewRef createOpenGLView(NSWindowRef window, unsigned int samples, bool vsync) { - LLOpenGLView *glview = [[LLOpenGLView alloc]initWithFrame:[(LLNSWindow*)window frame] withSamples:0 andVsync:FALSE]; + LLOpenGLView *glview = [[LLOpenGLView alloc]initWithFrame:[(LLNSWindow*)window frame] withSamples:samples andVsync:vsync]; [(LLNSWindow*)window setContentView:glview]; return glview; } |