From 922f36cdb18a6578e93ec75b6827d4529faba144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 29 Apr 2015 20:17:40 +0200 Subject: [PATCH] Fix crash on context creation on Windows on Intel drivers. Sorry! These driver-specific workarounds are a double-edged sword. --- src/Magnum/Implementation/setupDriverWorkarounds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Implementation/setupDriverWorkarounds.cpp b/src/Magnum/Implementation/setupDriverWorkarounds.cpp index 6f8af7739..fe1e2c805 100644 --- a/src/Magnum/Implementation/setupDriverWorkarounds.cpp +++ b/src/Magnum/Implementation/setupDriverWorkarounds.cpp @@ -41,7 +41,7 @@ void Context::setupDriverWorkarounds() { #ifdef CORRADE_TARGET_WINDOWS /* On Windows Intel drivers ARB_shading_language_420pack is exposed in GLSL even that the extension (e.g. binding keyword) is not supported */ - if((detectedDriver() & DetectedDriver::IntelWindows) && !Context::current()->isExtensionSupported()) + if((detectedDriver() & DetectedDriver::IntelWindows) && !isExtensionSupported()) _setRequiredVersion(GL::ARB::shading_language_420pack, None); #endif