[Mesa-dev] [PATCH] draw: fix vertex id computation

Brian Paul brianp at vmware.com
Wed Jul 24 16:21:01 PDT 2013


On 07/24/2013 03:22 PM, Zack Rusin wrote:
> vertex id has to be unaffected by the start index (i.e. when calling
> draw arrays with start_index = 5, the first vertex_id has to still
> be 0, not 5) and it has to be equal to the index when performing
> indexed rendering (in which case it has to be unaffected by the
> index bias). This fixes our behavior.
>
> Signed-off-by: Zack Rusin <zackr at vmware.com>

LGTM.
Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list