Buffer size query is zero with BindBufferBase
authorJeannot Breton <jbreton@nvidia.com>
Wed, 26 Jul 2017 18:14:03 +0000 (13:14 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 18 Aug 2017 08:15:29 +0000 (04:15 -0400)
The test expected the result to be the buffer size, but when bound
with glTransformFeedbackBufferBase we should follow the behavior
defined for BindBufferBase, and a result of 0 should be expected

Affects:

KHR-GL45.direct_state_access.xfb_buffers

Components: OpenGL

VK-GL-CTS issue: 598

Change-Id: I65e6e3117f1f77953c304e8f4f95263de4eca75d

external/openglcts/modules/gl/gl4cDirectStateAccessXFBTests.cpp

index f71b258..026fda0 100644 (file)
@@ -588,7 +588,7 @@ tcu::TestNode::IterateResult BuffersTest::iterate()
                        is_ok &= testStart(1, 0, "glTransformFeedbackBufferRange");
                        is_ok &= testStart(2, s_bo_size / 2, "glTransformFeedbackBufferRange");
 
-                       is_ok &= testSize(0, s_bo_size, "glTransformFeedbackBufferBase");
+                       is_ok &= testSize(0, 0, "glTransformFeedbackBufferBase");
                        is_ok &= testSize(1, s_bo_size / 2, "glTransformFeedbackBufferRange");
                        is_ok &= testSize(2, s_bo_size / 2, "glTransformFeedbackBufferRange");
                }