diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-08 00:58:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-08 00:58:28 +0300 |
commit | 73b52e243061fc0bb28f8ca077ed6a0917eb44db (patch) | |
tree | db6a17f8462922d7dd596d04850a85d1b6510714 /intern | |
parent | 3bfec4e31c20c9c4c050bbc7234d5ada956b444f (diff) |
Viewport AA for X11
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowX11.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp index 286e64e7e23..5e6e765457c 100644 --- a/intern/ghost/intern/GHOST_WindowX11.cpp +++ b/intern/ghost/intern/GHOST_WindowX11.cpp @@ -182,8 +182,11 @@ GHOST_WindowX11( attributes[i++] = GLX_BLUE_SIZE; attributes[i++] = 1; attributes[i++] = GLX_GREEN_SIZE; attributes[i++] = 1; attributes[i++] = GLX_DEPTH_SIZE; attributes[i++] = 1; + /* GLX 1.4+, multi-sample */ + attributes[i++] = GLX_SAMPLE_BUFFERS; attributes[i++] = 1; + attributes[i++] = GLX_SAMPLES; attributes[i++] = m_numOfAASamples; attributes[i] = None; - + m_visual = glXChooseVisual(m_display, DefaultScreen(m_display), attributes); if (m_visual == NULL) { |