meta: Replace save_state::{Vertex,Geometry,Fragment}Shader with an array.
authorPaul Berry <stereotype441@gmail.com>
Thu, 9 Jan 2014 19:29:17 +0000 (11:29 -0800)
committerPaul Berry <stereotype441@gmail.com>
Wed, 22 Jan 2014 04:25:44 +0000 (20:25 -0800)
commit69b258cb4636315b4c1aaaceeedd1eed8af98ba8
treec5240b61e44a5dae0cc9a31d10ed84c273124504
parentb4b70674eae940257b511912053edd19e4f19274
meta: Replace save_state::{Vertex,Geometry,Fragment}Shader with an array.

Since ctx->Shader.Current{Vertex,Geometry,Fragment}Program is an
array, this allows some meta code to be rolled up into loops.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/common/meta.c