From e603cf18415adba5f9e879aba3c1146e952eb688 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 22 Nov 2016 19:55:29 +1100 Subject: [PATCH] glsl: exit loop early if we find xfb layout qualifers Reviewed-by: Lionel Landwerlin --- src/compiler/glsl/link_varyings.cpp | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.30.2