Browse Source

Add forgotten check to extension-dependent texture tests.

pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
af9772bdc0
  1. 2
      src/Magnum/Test/CubeMapTextureArrayGLTest.cpp
  2. 2
      src/Magnum/Test/RectangleTextureGLTest.cpp

2
src/Magnum/Test/CubeMapTextureArrayGLTest.cpp

@ -136,6 +136,8 @@ void CubeMapTextureArrayGLTest::sampling() {
}
void CubeMapTextureArrayGLTest::samplingBorderInteger() {
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::EXT::texture_integer>())
CORRADE_SKIP(Extensions::GL::EXT::texture_integer::string() + std::string(" is not supported."));

2
src/Magnum/Test/RectangleTextureGLTest.cpp

@ -132,6 +132,8 @@ void RectangleTextureGLTest::sampling() {
}
void RectangleTextureGLTest::samplingBorderInteger() {
if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::texture_rectangle>())
CORRADE_SKIP(Extensions::GL::ARB::texture_rectangle::string() + std::string(" is not supported."));
if(!Context::current()->isExtensionSupported<Extensions::GL::EXT::texture_integer>())
CORRADE_SKIP(Extensions::GL::EXT::texture_integer::string() + std::string(" is not supported."));

Loading…
Cancel
Save