From 40c4d9edd44a7c3963773f3fe5a3f91fb69c48eb Mon Sep 17 00:00:00 2001 From: Sam Spilsbury Date: Sun, 7 Feb 2016 03:34:44 +0000 Subject: [PATCH] AbstractFramebuffer: Always use bindImplementationSingle for WebGL WebGL doesn't support anything else. --- src/Magnum/AbstractFramebuffer.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Magnum/AbstractFramebuffer.cpp b/src/Magnum/AbstractFramebuffer.cpp index ac8f7a25c..132a67628 100644 --- a/src/Magnum/AbstractFramebuffer.cpp +++ b/src/Magnum/AbstractFramebuffer.cpp @@ -105,9 +105,13 @@ void AbstractFramebuffer::bind() { } 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); #else + bindImplementationSingle(); + #endif + #else bindImplementationDefault(target); #endif } @@ -146,9 +150,13 @@ void AbstractFramebuffer::bindImplementationDefault(FramebufferTarget target) { } 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)(); #else + return bindImplementationSingle(); + #endif + #else return bindImplementationDefault(); #endif }