Browse Source

GL: restrict the "apple-buffer-..." workaround to just Apple drivers.

There's an increasing number of projects that use ANGLE or Zink on that
platform, and this workaround makes no sense there.
apple-crashy-msaa-default-framebuffer
Vladimír Vondruš 1 year ago
parent
commit
05699b336c
  1. 4
      src/Magnum/GL/Implementation/BufferState.cpp

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

@ -190,7 +190,9 @@ BufferState::BufferState(Context& context, Containers::StaticArrayView<Implement
}
#if defined(CORRADE_TARGET_APPLE) && !defined(MAGNUM_TARGET_GLES)
if(!context.isDriverWorkaroundDisabled("apple-buffer-texture-unbind-on-buffer-modify"_s)) {
/* Enable this only on Apple's own drivers, not alternatives like ANGLE or
Zink */
if(context.vendorString() == "Apple"_s && !context.isDriverWorkaroundDisabled("apple-buffer-texture-unbind-on-buffer-modify"_s)) {
dataImplementation = &Buffer::dataImplementationApple;
subDataImplementation = &Buffer::subDataImplementationApple;
mapImplementation = &Buffer::mapImplementationApple;

Loading…
Cancel
Save