Browse Source

Properly include a header to avoid crashes on MSVC GLES build.

Did I mention that this is a serious fucking compiler misfeature/bug?
pull/203/merge
Vladimír Vondruš 9 years ago
parent
commit
2148d2c235
  1. 6
      src/Magnum/Implementation/TextureState.h

6
src/Magnum/Implementation/TextureState.h

@ -32,13 +32,17 @@
#include "Magnum/Magnum.h"
#include "Magnum/OpenGL.h"
#if defined(_MSC_VER) && !defined(MAGNUM_TARGET_GLES2)
#ifdef _MSC_VER
#include "Magnum/AbstractTexture.h"
#ifndef MAGNUM_TARGET_GLES2
/* Otherwise the member function pointers will have different size based on
whether the header was included or not. CAUSES SERIOUS MEMORY CORRUPTION AND
IS NOT CAUGHT BY ANY WARNING WHATSOEVER! AARGH! */
#include "Magnum/BufferTexture.h"
#include "Magnum/CubeMapTexture.h"
#endif
#endif
namespace Magnum { namespace Implementation {

Loading…
Cancel
Save