Browse Source

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
d54be041c4 and rendered this class
practically unusable. Sorry.
pull/94/head
Vladimír Vondruš 11 years ago
parent
commit
5268595035
  1. 8
      src/Magnum/Platform/WindowlessCglApplication.cpp

8
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,

Loading…
Cancel
Save