From aa033e2e9783327838c45a9629565e659509a096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 2 Mar 2019 02:32:21 +0100 Subject: [PATCH] GL: XFAIL in PixelStorageGLTest if the driver wants to read RGBA. The data are arranged for RGB, no idea why this wants RGBA. Probably because ES? --- src/Magnum/GL/Test/PixelStorageGLTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Magnum/GL/Test/PixelStorageGLTest.cpp b/src/Magnum/GL/Test/PixelStorageGLTest.cpp index 7ac540812..c33c931b9 100644 --- a/src/Magnum/GL/Test/PixelStorageGLTest.cpp +++ b/src/Magnum/GL/Test/PixelStorageGLTest.cpp @@ -126,6 +126,9 @@ void PixelStorageGLTest::unpack2D() { #else Framebuffer fb{{{}, {2, 3}}}; fb.attachTexture(Framebuffer::ColorAttachment{0}, texture, 0); + + CORRADE_EXPECT_FAIL_IF(fb.implementationColorReadFormat() != PixelFormat::RGB, "Implementation-defined framebuffer read format is not RGB, reading will fail."); + fb.read(fb.viewport(), actual); #endif @@ -161,6 +164,9 @@ void PixelStorageGLTest::pack2D() { #else Framebuffer fb{{{}, {2, 3}}}; fb.attachTexture(Framebuffer::ColorAttachment{0}, texture, 0); + + CORRADE_EXPECT_FAIL_IF(fb.implementationColorReadFormat() != PixelFormat::RGB, "Implementation-defined framebuffer read format is not RGB, reading will fail."); + fb.read(fb.viewport(), image); #endif