diff options
author | Timothy Arceri <[email protected]> | 2016-11-03 16:00:37 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-12-30 10:57:16 +1100 |
commit | 700bc94dcebf4257740483d2ba467b138234fa1a (patch) | |
tree | da45fbee155479d7692bbe68c534a3c1c67385b3 /src/mesa/main/transformfeedback.c | |
parent | 31c04e4e229bec4e059779b4034cf597ceeadf97 (diff) |
mesa/glsl: move LinkedTransformFeedback from gl_shader_program to gl_program
This will help allow us to store gl_program in the CurrentProgram array rather
than gl_shader_program which will allow a bunch of simplifications.
Note that we make LinkedTransformFeedback a pointer so we don't waste
memory creating a struct for each stage. We also store a pointer to
the gl_program that will contain the pointer in gl_shader_program so
we can get easy access to the correct stage.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/transformfeedback.c')
-rw-r--r-- | src/mesa/main/transformfeedback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index 738d63eee37..2088c76e5ea 100644 --- a/src/mesa/main/transformfeedback.c +++ b/src/mesa/main/transformfeedback.c @@ -418,7 +418,7 @@ _mesa_BeginTransformFeedback(GLenum mode) return; } - info = &source->LinkedTransformFeedback; + info = source->xfb_program->sh.LinkedTransformFeedback; if (info->NumOutputs == 0) { _mesa_error(ctx, GL_INVALID_OPERATION, |