From 7100e3b6d8618a13b60bd865266b2ede428ccf3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 11 May 2020 21:04:33 +0200 Subject: [PATCH] Revert "Platform: choose a GLXFBConfig with a pbuffer." Caused an error when creating a WindowlessGlxApplication on a Mesa with just llvmpipe. Note to self: never again try to fix anything related to Xlib that's not broken. This reverts commit 511d0c1b27462598cc93f2ec371f7ff91f792e33. --- src/Magnum/Platform/WindowlessGlxApplication.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Magnum/Platform/WindowlessGlxApplication.cpp b/src/Magnum/Platform/WindowlessGlxApplication.cpp index b6c7bf0e4..56db047a8 100644 --- a/src/Magnum/Platform/WindowlessGlxApplication.cpp +++ b/src/Magnum/Platform/WindowlessGlxApplication.cpp @@ -85,13 +85,9 @@ WindowlessGlxContext::WindowlessGlxContext(const WindowlessGlxContext::Configura return; } - /* Choose a config that supports a pbuffer (by default it's GLX_WINDOW_BIT - which we don't need at all) */ + /* Choose config */ int configCount = 0; - constexpr static const int fbAttributes[] = { - GLX_DRAWABLE_TYPE, GLX_PBUFFER_BIT, - None - }; + constexpr static const int fbAttributes[] = { None }; GLXFBConfig* configs = glXChooseFBConfig(_display, DefaultScreen(_display), fbAttributes, &configCount); if(!configCount) { Error() << "Platform::WindowlessGlxContext: no supported framebuffer configuration found";