Browse Source

Fix crash on context creation on Windows on Intel drivers. Sorry!

These driver-specific workarounds are a double-edged sword.
pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
922f36cdb1
  1. 2
      src/Magnum/Implementation/setupDriverWorkarounds.cpp

2
src/Magnum/Implementation/setupDriverWorkarounds.cpp

@ -41,7 +41,7 @@ void Context::setupDriverWorkarounds() {
#ifdef CORRADE_TARGET_WINDOWS #ifdef CORRADE_TARGET_WINDOWS
/* On Windows Intel drivers ARB_shading_language_420pack is exposed in GLSL /* On Windows Intel drivers ARB_shading_language_420pack is exposed in GLSL
even that the extension (e.g. binding keyword) is not supported */ even that the extension (e.g. binding keyword) is not supported */
if((detectedDriver() & DetectedDriver::IntelWindows) && !Context::current()->isExtensionSupported<Extensions::GL::ARB::shading_language_420pack>()) if((detectedDriver() & DetectedDriver::IntelWindows) && !isExtensionSupported<Extensions::GL::ARB::shading_language_420pack>())
_setRequiredVersion(GL::ARB::shading_language_420pack, None); _setRequiredVersion(GL::ARB::shading_language_420pack, None);
#endif #endif

Loading…
Cancel
Save