diff options
author | Timothy Arceri <[email protected]> | 2016-09-23 13:05:20 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-09-24 09:18:29 +1000 |
commit | f5a6aab4031bc4754756c1773411728ad9a73381 (patch) | |
tree | 256bc632e96bdf866d44386d7dbb6dc5ae72880d /src/compiler/glsl/link_varyings.cpp | |
parent | 85e9bbc14d93fa7166c9ae075ee7ae29a8313e3f (diff) |
glsl: move xfb BufferStride into gl_transform_feedback_info
It makes more sense to have this here where we store the other values
from xfb qualifiers. The struct it was previously part of is now only
used to store values that come from the api.
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_varyings.cpp')
-rw-r--r-- | src/compiler/glsl/link_varyings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp index e622b3e46bc..e339823a5fe 100644 --- a/src/compiler/glsl/link_varyings.cpp +++ b/src/compiler/glsl/link_varyings.cpp @@ -1136,11 +1136,11 @@ store_tfeedback_info(struct gl_context *ctx, struct gl_shader_program *prog, /* Apply any xfb_stride global qualifiers */ if (has_xfb_qualifiers) { for (unsigned j = 0; j < MAX_FEEDBACK_BUFFERS; j++) { - if (prog->TransformFeedback.BufferStride[j]) { + if (prog->LinkedTransformFeedback.BufferStride[j]) { buffers |= 1 << j; explicit_stride[j] = true; prog->LinkedTransformFeedback.Buffers[j].Stride = - prog->TransformFeedback.BufferStride[j] / 4; + prog->LinkedTransformFeedback.BufferStride[j] / 4; } } } |