Browse Source

TextureTools: work around compiler warning.

pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
226974bf2c
  1. 4
      src/Magnum/Shaders/Implementation/CreateCompatibilityShader.h

4
src/Magnum/Shaders/Implementation/CreateCompatibilityShader.h

@ -31,7 +31,9 @@
#include "Magnum/Extensions.h"
#include "Magnum/Shader.h"
#ifdef MAGNUM_BUILD_STATIC
/* Enable only when compiling Shaders library and thus work around
"static symbol not used" warning when using this file for TextureTools */
#if defined(MAGNUM_BUILD_STATIC) && defined(MAGNUM_SHADERS_EXPORT)
static void importShaderResources() {
CORRADE_RESOURCE_INITIALIZE(MagnumShaders_RCS)
}

Loading…
Cancel
Save