[Mesa-dev] [PATCH] mesa: Set transform feedback's default buffer mode to INTERLEAVED_ATTRIBS
Kenneth Graunke
kenneth at whitecape.org
Mon Nov 26 19:45:35 PST 2012
On 11/26/2012 03:15 PM, Matt Turner wrote:
> Fixes part of es3conform's transform_feedback_init_defaults test.
> NOTE: This is a candidate for the stable branch.
> ---
> src/mesa/main/shaderobj.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/main/shaderobj.c b/src/mesa/main/shaderobj.c
> index 1706cac..59daff5 100644
> --- a/src/mesa/main/shaderobj.c
> +++ b/src/mesa/main/shaderobj.c
> @@ -247,6 +247,8 @@ _mesa_init_shader_program(struct gl_context *ctx, struct gl_shader_program *prog
> prog->Geom.InputType = GL_TRIANGLES;
> prog->Geom.OutputType = GL_TRIANGLE_STRIP;
>
> + prog->TransformFeedback.BufferMode = GL_INTERLEAVED_ATTRIBS;
> +
> prog->InfoLog = ralloc_strdup(prog, "");
> }
It looks like a bunch of the specs don't state what the default should
be, but the newer ones do and they say INTERLEAVED_ATTRIBS.
Nice.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
More information about the mesa-dev
mailing list