Browse Source

DebugTools: don't bother with ES2 in a non-ES2 test codepath.

pull/168/head
Vladimír Vondruš 3 years ago
parent
commit
3c2beb1ba9
  1. 5
      src/Magnum/DebugTools/Test/TextureImageGLTest.cpp

5
src/Magnum/DebugTools/Test/TextureImageGLTest.cpp

@ -318,13 +318,8 @@ void TextureImageGLTest::subImageCubeBufferNotReadable() {
CORRADE_SKIP(GL::Extensions::ARB::get_texture_sub_image::string() << "supported, can't test");
#endif
#ifdef MAGNUM_TARGET_GLES2
GL::TextureFormat format = GL::TextureFormat::Luminance;
ImageView2D view{GL::PixelFormat::Luminance, GL::PixelType::UnsignedByte, Vector2i{2}, Data2D};
#else
GL::TextureFormat format = GL::TextureFormat::RGB9E5;
ImageView2D view{GL::PixelFormat::RGB, GL::PixelType::UnsignedInt5999Rev, Vector2i{2}, Data2D};
#endif
GL::CubeMapTexture texture;
texture.setImage(GL::CubeMapCoordinate::PositiveX, 0, format, view)

Loading…
Cancel
Save