Browse Source

GL: fix compilation with ANGLE on macOS.

This assumed that non-iOS Apple platform is always desktop GL. Wrong.
pull/432/head
Vladimír Vondruš 6 years ago
parent
commit
a119ee2bb2
  1. 2
      src/Magnum/GL/Implementation/BufferState.cpp

2
src/Magnum/GL/Implementation/BufferState.cpp

@ -177,7 +177,7 @@ BufferState::BufferState(Context& context, std::vector<std::string>& 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;

Loading…
Cancel
Save