Support GL 4.5 in the Boolean State Query tests
authorAlexander Galazin <alexander.galazin@arm.com>
Tue, 29 Dec 2020 19:18:51 +0000 (20:18 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 19 Jan 2021 07:41:58 +0000 (07:41 +0000)
Affects:
dEQP-GLES31.functional.state_query.boolean.*
dEQP-GL45.functional.state_query.boolean.*

Components: AOSP

Change-Id: I92419157e7281bd3989d80f719d6a862f121cb34

modules/gles31/functional/es31fBooleanStateQueryTests.cpp

index 6395016af5ebf6a7efe08689bc9643563835989e..57bd0b4994daf889d7be779dc96da389825eeee9 100644 (file)
@@ -70,7 +70,8 @@ public:
 
        IterateResult iterate (void)
        {
-               TCU_CHECK_AND_THROW(NotSupportedError, contextSupports(m_context.getRenderContext().getType(), m_minimumVersion), "This test requires a higher context version.");
+               if (!contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(4, 5)))
+                       TCU_CHECK_AND_THROW(NotSupportedError, contextSupports(m_context.getRenderContext().getType(), m_minimumVersion), "This test requires a higher context version.");
 
                tcu::ResultCollector result(m_testCtx.getLog(), " // ERROR: ");
                enableLogging(true);