From 3c2beb1ba92ca80440620058759a81e86b032290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 16 Oct 2023 15:36:34 +0200 Subject: [PATCH] DebugTools: don't bother with ES2 in a non-ES2 test codepath. --- src/Magnum/DebugTools/Test/TextureImageGLTest.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Magnum/DebugTools/Test/TextureImageGLTest.cpp b/src/Magnum/DebugTools/Test/TextureImageGLTest.cpp index 4e940fb4f..02426799f 100644 --- a/src/Magnum/DebugTools/Test/TextureImageGLTest.cpp +++ b/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)