diff options
Diffstat (limited to 'common/headless_display.cpp')
-rw-r--r-- | common/headless_display.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/common/headless_display.cpp b/common/headless_display.cpp index 3e30d62749..3aaf2020b9 100644 --- a/common/headless_display.cpp +++ b/common/headless_display.cpp @@ -45,15 +45,9 @@ HeadlessDisplay::HeadlessDisplay() { throw std::runtime_error("Cannot find glXCreateContextAttribsARB"); } - + // We're creating a dummy pbuffer anyway that we're not using. static int pixelFormat[] = { - GLX_DOUBLEBUFFER, False, - GLX_RED_SIZE, 8, - GLX_GREEN_SIZE, 8, - GLX_BLUE_SIZE, 8, - GLX_ALPHA_SIZE, 8, - GLX_DEPTH_SIZE, 24, - GLX_STENCIL_SIZE, 8, + GLX_DRAWABLE_TYPE, GLX_PBUFFER_BIT, None }; @@ -62,8 +56,6 @@ HeadlessDisplay::HeadlessDisplay() { if (configs <= 0) { throw std::runtime_error("No Framebuffer configurations"); } - - XSync(x_display, False); #endif } |