summaryrefslogtreecommitdiff
path: root/common/headless_display.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-10-15 09:56:57 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-10-15 09:56:57 -0700
commitee54220c7df2863dbbda191ad666416a6c84531b (patch)
treee7b06b26fea564574414f118097e956dd216b6ae /common/headless_display.cpp
parent5f40d27256b5da164bfdd19253ca4c2078b1800a (diff)
downloadqtlocation-mapboxgl-ee54220c7df2863dbbda191ad666416a6c84531b.tar.gz
lower our expectations towards the pbuffer and use framebuffers instead
Diffstat (limited to 'common/headless_display.cpp')
-rw-r--r--common/headless_display.cpp12
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
}