|
|
|
|
@ -103,6 +103,8 @@ TextureState::TextureState(Context& context, std::vector<std::string>& extension
|
|
|
|
|
#endif |
|
|
|
|
{ |
|
|
|
|
unbindImplementation = &AbstractTexture::unbindImplementationDefault; |
|
|
|
|
/* This is additionally modified below for the
|
|
|
|
|
apple-buffer-texture-unbind-on-buffer-modify workaround */ |
|
|
|
|
bindImplementation = &AbstractTexture::bindImplementationDefault; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -495,8 +497,13 @@ TextureState::TextureState(Context& context, std::vector<std::string>& extension
|
|
|
|
|
implement the workaround also for bindMultiImplementation */ |
|
|
|
|
CORRADE_INTERNAL_ASSERT(!context.isExtensionSupported<Extensions::ARB::multi_bind>()); |
|
|
|
|
bindImplementation = &AbstractTexture::bindImplementationAppleBufferTextureWorkaround; |
|
|
|
|
} |
|
|
|
|
bindInternalImplementation = &AbstractTexture::bindImplementationAppleBufferTextureWorkaround; |
|
|
|
|
} else |
|
|
|
|
#endif |
|
|
|
|
{ |
|
|
|
|
/* bindImplementation already set above */ |
|
|
|
|
bindInternalImplementation = &AbstractTexture::bindImplementationDefault; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if !defined(MAGNUM_TARGET_GLES2) && !defined(MAGNUM_TARGET_WEBGL) |
|
|
|
|
/* Allocate image bindings array to hold all possible image units */ |
|
|
|
|
|