The transform feedback tests query the limit but never actually used it
to clamp the number of attributes used with GL_SEPARATE_ATTRIBS.
Components: OpenGL
VK-GL-CTS issue: 469
Affects:
KHR-GL45.transform_feedback.get_xfb_varying
Change-Id: Ie0b89233024e2e10bacc1e9b2f9969c0da3a9e29
/* Setup number of attributes. */
glw::GLuint number_of_attributes = max_xfb_components / attribute_components;
+ if (s_capture_ways[capture_way] == GL_SEPARATE_ATTRIBS &&
+ number_of_attributes > glw::GLuint(m_max_xfb_separate_attributes))
+ {
+ number_of_attributes = m_max_xfb_separate_attributes;
+ }
+
/* Clamp to limits. */
if (number_of_attributes * attribute_components > max_total_components)
{