Browse Source

Disable ARB_explicit_uniform_location on AMD drivers.

It causes GLSL compiler crash in 13.251 linux driver. Not sure about
other platforms.
pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
b8abc00c66
  1. 7
      src/Magnum/Implementation/setupDriverWorkarounds.cpp

7
src/Magnum/Implementation/setupDriverWorkarounds.cpp

@ -33,6 +33,13 @@ void Context::setupDriverWorkarounds() {
if(_extensionRequiredVersion[Extensions::extension::Index] < Version::version) \
_extensionRequiredVersion[Extensions::extension::Index] = Version::version
#ifndef MAGNUM_TARGET_GLES
/* This extension causes crash in GLSL compiler on AMD linux drivers 13.251 */
const std::string renderer = rendererString();
if(renderer.find("Advanced Micro Devices") != std::string::npos)
_setRequiredVersion(GL::ARB::explicit_uniform_location, None);
#endif
#ifndef MAGNUM_TARGET_GLES
/* Layout qualifier causes compiler error with GLSL 1.20 on Mesa, GLSL 1.30
on NVidia and 1.40 on Mac OS X */

Loading…
Cancel
Save