From b5dc142e27941611783a8db6f6e75186b8a03df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 28 Sep 2014 15:38:41 +0200 Subject: [PATCH] MSVC 2013 compatibility: fix bad sizes for member function pointers. Follow-up to eb66de657bcd16f490a0dd331324a9bafdb98cc6, I mistyped ifdef for ifndef. Sorry. Fixes #70. --- src/Magnum/Implementation/FramebufferState.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Implementation/FramebufferState.h b/src/Magnum/Implementation/FramebufferState.h index 2745d28bf..c66fdf96d 100644 --- a/src/Magnum/Implementation/FramebufferState.h +++ b/src/Magnum/Implementation/FramebufferState.h @@ -34,9 +34,9 @@ #include "Magnum/RenderbufferFormat.h" #endif -/* We did't get memory corruption like in e.g. TextureState here, but include - the header just to be sure */ -#ifndef CORRADE_MSVC2013_COMPATIBILITY +/* If not included, the following members have bad offsets, causing weird + runtime behavior */ +#ifdef CORRADE_MSVC2013_COMPATIBILITY #include "Magnum/Renderbuffer.h" #endif