Commit 586bc55c by Olli Etuaho

Return the correct count from getAttachedShaders

The count should be the total amount of shader ids written. Before this patch the code used to write the amount of attached shaders to count regardless of the value of maxCount. BUG=angleproject:1101 TEST=dEQP-GLES3.functional.state_query.shader.* Change-Id: I5ae729748c7809f03fd496c927a76f60398d2b42 Reviewed-on: https://chromium-review.googlesource.com/329865Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Commit-Queue: Olli Etuaho <oetuaho@nvidia.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent e18eb970
......@@ -859,9 +859,8 @@ void Program::getAttachedShaders(GLsizei maxCount, GLsizei *count, GLuint *shade
if (total < maxCount)
{
shaders[total] = mData.mAttachedVertexShader->getHandle();
total++;
}
total++;
}
if (mData.mAttachedFragmentShader)
......@@ -869,9 +868,8 @@ void Program::getAttachedShaders(GLsizei maxCount, GLsizei *count, GLuint *shade
if (total < maxCount)
{
shaders[total] = mData.mAttachedFragmentShader->getHandle();
total++;
}
total++;
}
if (count)
......
......@@ -78,7 +78,6 @@
1093 WIN LINUX : dEQP-GLES3.functional.shaders.builtin_functions.precision.tanh.highp_fragment.vec4 = FAIL
1094 WIN LINUX : dEQP-GLES3.functional.shaders.builtin_variable.vertex_id = FAIL
1101 WIN LINUX : dEQP-GLES3.functional.state_query.fbo.framebuffer_attachment_x_size_rbo = FAIL
1101 WIN LINUX : dEQP-GLES3.functional.state_query.shader.program_attached_shaders = FAIL
1101 WIN LINUX : dEQP-GLES3.functional.state_query.integers.sampler_binding_getboolean = FAIL
1101 WIN LINUX : dEQP-GLES3.functional.state_query.integers.sampler_binding_getinteger = FAIL
1101 WIN LINUX : dEQP-GLES3.functional.state_query.integers.sampler_binding_getinteger64 = FAIL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment