From e299e5e6af8d29c15c4cc8662510666248326c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 7 Jun 2015 14:39:03 +0200 Subject: [PATCH] Properly check for extensions in Framebuffer GL test. --- src/Magnum/Test/FramebufferGLTest.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Magnum/Test/FramebufferGLTest.cpp b/src/Magnum/Test/FramebufferGLTest.cpp index 9b7f21dec..8b3cfe6de 100644 --- a/src/Magnum/Test/FramebufferGLTest.cpp +++ b/src/Magnum/Test/FramebufferGLTest.cpp @@ -633,6 +633,11 @@ void FramebufferGLTest::attachCubeMapTextureArray() { #endif void FramebufferGLTest::detach() { + #ifndef MAGNUM_TARGET_GLES + if(!Context::current()->isExtensionSupported()) + CORRADE_SKIP(Extensions::GL::ARB::framebuffer_object::string() + std::string(" is not available.")); + #endif + Framebuffer framebuffer({{}, Vector2i(128)}); framebuffer.detach(Framebuffer::ColorAttachment(0)) .detach(Framebuffer::BufferAttachment::Depth) @@ -691,6 +696,11 @@ void FramebufferGLTest::multipleColorOutputs() { } void FramebufferGLTest::clear() { + #ifndef MAGNUM_TARGET_GLES + if(!Context::current()->isExtensionSupported()) + CORRADE_SKIP(Extensions::GL::ARB::framebuffer_object::string() + std::string(" is not available.")); + #endif + Renderbuffer color; #ifndef MAGNUM_TARGET_GLES2 color.setStorage(RenderbufferFormat::RGBA8, Vector2i(128));