drawCall error optional if beginXFB failed
authorJeannot Breton <jbreton@nvidia.com>
Mon, 31 Jul 2017 18:59:59 +0000 (13:59 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 22 Aug 2017 07:43:21 +0000 (03:43 -0400)
Make the draw call failure optional if the beginTransformFeedback
failed

Affects:

KHR-GLES32.core.tessellation_shader.single.xfb_captures_data_from_correct_stage

Components: OpenGL

VK-GL-CTS issue: 609

Change-Id: If2a47bf2bef866d1618b7071f6adb9e887422c88
(cherry picked from commit bb0a7d17b1c3ba5f92e44b00b6aa9d456f05479f)

external/openglcts/modules/glesext/tessellation_shader/esextcTessellationShaderXFB.cpp

index d138daf..d560089 100644 (file)
@@ -805,7 +805,7 @@ tcu::TestNode::IterateResult TessellationShaderXFB::iterate(void)
                                }
                                else
                                {
-                                       if (gl.getError() != GL_INVALID_OPERATION)
+                                       if (gl.getError() != GL_INVALID_OPERATION && !didBeginXFBFail)
                                        {
                                                TCU_FAIL("A draw call made using a program object lacking TES stage has"
                                                                 " not generated a GL_INVALID_OPERATION as specified");