mesa: Set transform feedback's default buffer mode to INTERLEAVED_ATTRIBS
authorMatt Turner <mattst88@gmail.com>
Mon, 26 Nov 2012 23:13:25 +0000 (15:13 -0800)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 17:38:42 +0000 (18:38 +0100)
Fixes part of es3conform's transform_feedback_init_defaults test.
NOTE: This is a candidate for the stable branch.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 13f9012ad3837c98a2c891244e64878fa61f9cd2)

src/mesa/main/shaderobj.c

index 16800ae..ff49578 100644 (file)
@@ -250,6 +250,8 @@ _mesa_init_shader_program(struct gl_context *ctx, struct gl_shader_program *prog
    prog->Geom.OutputType = GL_TRIANGLE_STRIP;
 #endif
 
+   prog->TransformFeedback.BufferMode = GL_INTERLEAVED_ATTRIBS;
+
    prog->InfoLog = ralloc_strdup(prog, "");
 }