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 <[email protected]> _______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
