From 9f8092de1f92b7ec20e1478252e3c3df8074e07f Mon Sep 17 00:00:00 2001 From: BMiles Date: Mon, 19 Mar 2018 14:46:26 -0400 Subject: [PATCH] This change fixes an issue in BindBufferOffsetEXT Change hard coded 0 to i for iterating in a loop The test needs to be iterating through the indices of the buffer. Affects: KHR-GL4*.transform_feedback.capture_vertex_separate_test Components: OpenGL VK-GL-CTS issue: 1108 Change-Id: I0654bf453c05fddad2e10c9843b9130619f4844a --- external/openglcts/modules/gl/gl3cTransformFeedbackTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/openglcts/modules/gl/gl3cTransformFeedbackTests.cpp b/external/openglcts/modules/gl/gl3cTransformFeedbackTests.cpp index a72d77818..3189c3757 100644 --- a/external/openglcts/modules/gl/gl3cTransformFeedbackTests.cpp +++ b/external/openglcts/modules/gl/gl3cTransformFeedbackTests.cpp @@ -3171,7 +3171,7 @@ void gl3cts::TransformFeedback::CaptureVertexSeparate::bindBuffer(BindBufferCase case BIND_BUFFER_OFFSET_CASE: for (glw::GLint i = 0; i < m_max_transform_feedback_separate_attribs; ++i) { - m_glBindBufferOffsetEXT(GL_TRANSFORM_FEEDBACK_BUFFER, 0, m_buffers[i], 0); + m_glBindBufferOffsetEXT(GL_TRANSFORM_FEEDBACK_BUFFER, i, m_buffers[i], 0); } break; default: -- 2.34.1