Commit 1bdf31e8 authored by Jonas Maebe's avatar Jonas Maebe Committed by Jeremy Huddleston Sequoia
Browse files

darwin: do not create double-buffered offscreen pixel formats

http://xquartz.macosforge.org/trac/ticket/536

Signed-off-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston Sequoia <jeremyhu@apple.com>
(cherry picked from commit 5fdf1f78)
parent ecf0bef4
...@@ -116,7 +116,7 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * m ...@@ -116,7 +116,7 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * m
*uses_stereo = false; *uses_stereo = false;
} }
if (mode->doubleBufferMode) { if (!offscreen && mode->doubleBufferMode) {
attr[numattr++] = kCGLPFADoubleBuffer; attr[numattr++] = kCGLPFADoubleBuffer;
*double_buffered = true; *double_buffered = true;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment