From 52685950354b8f633373baf500aa3c59010a609b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 22 Mar 2015 00:53:56 +0100 Subject: [PATCH] Platform: removed bogus check in WindowlessCglApplication. It returns CGL version and not the GL one, obviously. The original check was suspiciously broken so I "fixed" it in d54be041c4b4f1d7489263c54d266041d91f8d4e and rendered this class practically unusable. Sorry. --- src/Magnum/Platform/WindowlessCglApplication.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Magnum/Platform/WindowlessCglApplication.cpp b/src/Magnum/Platform/WindowlessCglApplication.cpp index 0014edbbf..b111c1a01 100644 --- a/src/Magnum/Platform/WindowlessCglApplication.cpp +++ b/src/Magnum/Platform/WindowlessCglApplication.cpp @@ -54,14 +54,6 @@ void WindowlessCglApplication::createContext(const Configuration& configuration) bool WindowlessCglApplication::tryCreateContext(const Configuration&) { CORRADE_ASSERT(!_context, "Platform::WindowlessCglApplication::tryCreateContext(): context already created", false); - /* Check version */ - GLint major, minor; - CGLGetVersion(&major, &minor); - if(version(major, minor) < Version::GL210) { - Error() << "Platform::WindowlessCglApplication::tryCreateContext(): OpenGL version 2.1 or greater is required"; - return false; - } - int formatCount; CGLPixelFormatAttribute attributes32[] = { kCGLPFAAccelerated,