Browse Source

Properly check that EXT_texture_array is supported in the test.

pull/158/head
Vladimír Vondruš 10 years ago
parent
commit
1e6a88a9dd
  1. 2
      src/Magnum/Test/FramebufferGLTest.cpp

2
src/Magnum/Test/FramebufferGLTest.cpp

@ -484,6 +484,8 @@ void FramebufferGLTest::attachTexture3D() {
void FramebufferGLTest::attachTexture1DArray() {
if(!Context::current().isExtensionSupported<Extensions::GL::ARB::framebuffer_object>())
CORRADE_SKIP(Extensions::GL::ARB::framebuffer_object::string() + std::string(" is not available."));
if(!Context::current().isExtensionSupported<Extensions::GL::EXT::texture_array>())
CORRADE_SKIP(Extensions::GL::EXT::texture_array::string() + std::string(" is not available."));
Texture1DArray color;
color.setStorage(1, TextureFormat::RGBA8, {128, 8});

Loading…
Cancel
Save