Browse Source

AbstractFramebuffer: Always use bindImplementationSingle for WebGL

WebGL doesn't support anything else.
pull/134/head
Sam Spilsbury 10 years ago
parent
commit
40c4d9edd4
  1. 12
      src/Magnum/AbstractFramebuffer.cpp

12
src/Magnum/AbstractFramebuffer.cpp

@ -105,9 +105,13 @@ void AbstractFramebuffer::bind() {
} }
void AbstractFramebuffer::bindInternal(FramebufferTarget target) { void AbstractFramebuffer::bindInternal(FramebufferTarget target) {
#if defined(MAGNUM_TARGET_GLES2) && !defined(MAGNUM_TARGET_WEBGL) #if defined(MAGNUM_TARGET_GLES2)
#if !defined(MAGNUM_TARGET_WEBGL)
(this->*Context::current().state().framebuffer->bindImplementation)(target); (this->*Context::current().state().framebuffer->bindImplementation)(target);
#else #else
bindImplementationSingle();
#endif
#else
bindImplementationDefault(target); bindImplementationDefault(target);
#endif #endif
} }
@ -146,9 +150,13 @@ void AbstractFramebuffer::bindImplementationDefault(FramebufferTarget target) {
} }
FramebufferTarget AbstractFramebuffer::bindInternal() { FramebufferTarget AbstractFramebuffer::bindInternal() {
#if defined(MAGNUM_TARGET_GLES2) && !defined(MAGNUM_TARGET_WEBGL) #if defined(MAGNUM_TARGET_GLES2)
#if !defined(MAGNUM_TARGET_WEBGL)
return (this->*Context::current().state().framebuffer->bindInternalImplementation)(); return (this->*Context::current().state().framebuffer->bindInternalImplementation)();
#else #else
return bindImplementationSingle();
#endif
#else
return bindImplementationDefault(); return bindImplementationDefault();
#endif #endif
} }

Loading…
Cancel
Save