From 1f2849d934ed34072829729340de5d199ae3a253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 10 Jan 2018 14:03:05 +0100 Subject: [PATCH] Test: expect test failure with XFB and EXT_debug_label. The extension spec says it should be allowed, but NV thinks otherwise. --- src/Magnum/Test/TransformFeedbackGLTest.cpp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Test/TransformFeedbackGLTest.cpp b/src/Magnum/Test/TransformFeedbackGLTest.cpp index 655c7dc40..835c30e1b 100644 --- a/src/Magnum/Test/TransformFeedbackGLTest.cpp +++ b/src/Magnum/Test/TransformFeedbackGLTest.cpp @@ -188,12 +188,27 @@ void TransformFeedbackGLTest::label() { TransformFeedback feedback; CORRADE_COMPARE(feedback.label(), ""); - MAGNUM_VERIFY_NO_ERROR(); + { + #ifdef MAGNUM_TARGET_GLES + CORRADE_EXPECT_FAIL_IF(Context::current().detectedDriver() & Context::DetectedDriver::NVidia && + !Context::current().isExtensionSupported(), + "NVidia 387.34 ES3.2 complains that GL_TRANSFORM_FEEDBACK can't be used with glGetObjectLabelEXT()."); + #endif + MAGNUM_VERIFY_NO_ERROR(); + } feedback.setLabel("MyXfb"); - MAGNUM_VERIFY_NO_ERROR(); + { + #ifdef MAGNUM_TARGET_GLES + CORRADE_EXPECT_FAIL_IF(Context::current().detectedDriver() & Context::DetectedDriver::NVidia && + !Context::current().isExtensionSupported(), + "NVidia 387.34 ES3.2 complains that GL_TRANSFORM_FEEDBACK can't be used with glGetObjectLabelEXT()."); + #endif + MAGNUM_VERIFY_NO_ERROR(); - CORRADE_COMPARE(feedback.label(), "MyXfb"); + CORRADE_COMPARE(feedback.label(), "MyXfb"); + MAGNUM_VERIFY_NO_ERROR(); /* Check for errors again to flush the error state */ + } } namespace {