From: Timothy Arceri Date: Tue, 22 Nov 2016 08:55:29 +0000 (+1100) Subject: glsl: exit loop early if we find xfb layout qualifers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e603cf18415adba5f9e879aba3c1146e952eb688;p=mesa.git glsl: exit loop early if we find xfb layout qualifers Reviewed-by: Lionel Landwerlin --- diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp index 5529e7a7700..6d54a111ea1 100644 --- a/src/compiler/glsl/link_varyings.cpp +++ b/src/compiler/glsl/link_varyings.cpp @@ -120,6 +120,7 @@ process_xfb_layout_qualifiers(void *mem_ctx, const gl_linked_shader *sh, for (unsigned j = 0; j < MAX_FEEDBACK_BUFFERS; j++) { if (sh->info.TransformFeedback.BufferStride[j]) { has_xfb_qualifiers = true; + break; } }