From fe3c0c440e39498d19a07152d4104545c2ba235a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 2 Jul 2025 23:42:04 +0200 Subject: [PATCH] GL: add an XFAIL for no-attachment framebuffers on GLES Mesa 20. --- src/Magnum/GL/Test/FramebufferGLTest.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Magnum/GL/Test/FramebufferGLTest.cpp b/src/Magnum/GL/Test/FramebufferGLTest.cpp index 3ad5ea803..d135cee78 100644 --- a/src/Magnum/GL/Test/FramebufferGLTest.cpp +++ b/src/Magnum/GL/Test/FramebufferGLTest.cpp @@ -1095,7 +1095,14 @@ void FramebufferGLTest::setDefaultSize() { .setDefaultSampleCount(1) .setDefaultFixedSampleLocations(false); - MAGNUM_VERIFY_NO_GL_ERROR(); + /* Works on Mesa 25, not sure about the versions between */ + { + CORRADE_EXPECT_FAIL_IF( + Context::current().version() == Version::GLES310 && + Context::current().versionString().contains("Mesa 20"), + "Mesa 20 reports GL ES 3.1 but fails with InvalidEnum."); + MAGNUM_VERIFY_NO_GL_ERROR(); + } CORRADE_COMPARE(framebuffer.checkStatus(FramebufferTarget::Draw), Framebuffer::Status::Complete); } #endif