From ebd8794ce6c80d08fd0431a1be13102f2eb8f03f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 27 Sep 2015 21:39:48 +0200 Subject: [PATCH] Don't include ES3/desktop-only header on ES2. --- src/Magnum/Implementation/TextureState.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Implementation/TextureState.h b/src/Magnum/Implementation/TextureState.h index b4c9cbc72..43035a9e2 100644 --- a/src/Magnum/Implementation/TextureState.h +++ b/src/Magnum/Implementation/TextureState.h @@ -30,7 +30,7 @@ #include "Magnum/CubeMapTexture.h" -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(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! */