From a119ee2bb2cefcd545b6363333b9d21a1934eef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 4 Apr 2020 20:13:46 +0200 Subject: [PATCH] GL: fix compilation with ANGLE on macOS. This assumed that non-iOS Apple platform is always desktop GL. Wrong. --- src/Magnum/GL/Implementation/BufferState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/GL/Implementation/BufferState.cpp b/src/Magnum/GL/Implementation/BufferState.cpp index 7168b5ceb..7318f2f04 100644 --- a/src/Magnum/GL/Implementation/BufferState.cpp +++ b/src/Magnum/GL/Implementation/BufferState.cpp @@ -177,7 +177,7 @@ BufferState::BufferState(Context& context, std::vector& extensions) setTargetHintImplementation = &Buffer::setTargetHintImplementationDefault; } - #if defined(CORRADE_TARGET_APPLE) && !defined(CORRADE_TARGET_IOS) + #if defined(CORRADE_TARGET_APPLE) && !defined(MAGNUM_TARGET_GLES) if(!context.isDriverWorkaroundDisabled("apple-buffer-texture-unbind-on-buffer-modify")) { dataImplementation = &Buffer::dataImplementationApple; subDataImplementation = &Buffer::subDataImplementationApple;