Browse Source

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?
pull/324/head
Vladimír Vondruš 7 years ago
parent
commit
aa033e2e97
  1. 6
      src/Magnum/GL/Test/PixelStorageGLTest.cpp

6
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

Loading…
Cancel
Save