From 91a2798603dbd8e5045ffaf69855e678690e401c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 11 Dec 2012 17:54:25 +0100 Subject: [PATCH] Context initialization was not skipping surely supported extensions. On OpenGL 3.3 context it was checking for support of all 3.0, 3.1 and 3.2 extensions even if isExtensionSupported() didn't use that information at all. --- src/Context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context.cpp b/src/Context.cpp index 539a145a3..2e5d91007 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -239,7 +239,7 @@ Context::Context() { Version::None }; std::size_t future = 0; - while(versions[future] != Version::None && !isVersionSupported(_version)) + while(versions[future] != Version::None && isVersionSupported(versions[future])) ++future; /* List of extensions from future versions (extensions from current and