Browse Source

Test: ensure that all extensions are available.

I'm not really sure what extensions ARB_cube_map_texture_array expects
and what not, so checking for everything just in case.
pull/77/head
Vladimír Vondruš 12 years ago
parent
commit
06b412fed0
  1. 2
      src/Magnum/Test/CubeMapTextureArrayGLTest.cpp

2
src/Magnum/Test/CubeMapTextureArrayGLTest.cpp

@ -425,6 +425,8 @@ void CubeMapTextureArrayGLTest::subImageBuffer() {
void CubeMapTextureArrayGLTest::generateMipmap() {
if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::texture_cube_map_array>())
CORRADE_SKIP(Extensions::GL::ARB::texture_cube_map_array::string() + std::string(" is not supported."));
if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::framebuffer_object>())
CORRADE_SKIP(Extensions::GL::ARB::framebuffer_object::string() + std::string(" is not supported."));
CubeMapTextureArray texture;
texture.setImage(0, TextureFormat::RGBA8,

Loading…
Cancel
Save