diff options
author | Jonas Maebe <[email protected]> | 2012-09-10 00:44:15 +0200 |
---|---|---|
committer | Jeremy Huddleston Sequoia <[email protected]> | 2012-09-24 16:06:44 -0700 |
commit | 59997d619d8957fca3b2042fe4ebeed0709c0204 (patch) | |
tree | 527b059a075b661825f4072c4d5a72a74b1b1b5a | |
parent | 25da204f692c291ae3f06bbb9245131738bb80da (diff) |
darwin: do not create double-buffered offscreen pixel formats
http://xquartz.macosforge.org/trac/ticket/536
Signed-off-by: Jeremy Huddleston Sequoia <[email protected]>
(cherry picked from commit 5fdf1f784bf449d7ce9839506fa23c5357696c4c)
-rw-r--r-- | src/glx/apple/apple_visual.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c index a24616480ab..282934f1749 100644 --- a/src/glx/apple/apple_visual.c +++ b/src/glx/apple/apple_visual.c @@ -116,7 +116,7 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * m *uses_stereo = false; } - if (mode->doubleBufferMode) { + if (!offscreen && mode->doubleBufferMode) { attr[numattr++] = kCGLPFADoubleBuffer; *double_buffered = true; } |