[Mesa-dev,v2,23/23] mesa: Copy Geom.UsesEndPrimitive when cloning a geometry program.

Submitted by Iago Toral Quiroga on June 18, 2014, 9:51 a.m.

Details

Message ID 1403085110-31168-24-git-send-email-itoral@igalia.com
State Superseded
Headers show

Not browsing as part of any series.

Commit Message

Iago Toral Quiroga June 18, 2014, 9:51 a.m.
---
 src/mesa/program/program.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c
index 1263cea..aedce3e 100644
--- a/src/mesa/program/program.c
+++ b/src/mesa/program/program.c
@@ -552,6 +552,7 @@  _mesa_clone_program(struct gl_context *ctx, const struct gl_program *prog)
          gpc->InputType = gp->InputType;
          gpc->Invocations = gp->Invocations;
          gpc->OutputType = gp->OutputType;
+         gpc->UsesEndPrimitive = gp->UsesEndPrimitive;
          gpc->UsesStreams = gp->UsesStreams;
       }
       break;

Comments

This patch is

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>

Clearly this field should have been copied as long as it has existed.
Right?

On 06/18/2014 02:51 AM, Iago Toral Quiroga wrote:
> ---
>  src/mesa/program/program.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c
> index 1263cea..aedce3e 100644
> --- a/src/mesa/program/program.c
> +++ b/src/mesa/program/program.c
> @@ -552,6 +552,7 @@ _mesa_clone_program(struct gl_context *ctx, const struct gl_program *prog)
>           gpc->InputType = gp->InputType;
>           gpc->Invocations = gp->Invocations;
>           gpc->OutputType = gp->OutputType;
> +         gpc->UsesEndPrimitive = gp->UsesEndPrimitive;
>           gpc->UsesStreams = gp->UsesStreams;
>        }
>        break;