mesa: Copy Geom.UsesEndPrimitive when cloning a geometry program.
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 16 Jun 2014 15:00:15 +0000 (17:00 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 20 Jun 2014 07:50:54 +0000 (09:50 +0200)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/program/program.c

index b7332fccf305267fd40dea5755d883f709d75c6f..988def1a348fc5439f38f8250ef314ad237c128a 100644 (file)
@@ -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;
       }
       break;
    default: