mesa: fix glMultiDrawArrays inside a display list
authorBrian Paul <brianp@vmware.com>
Wed, 26 Mar 2014 23:08:20 +0000 (17:08 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 27 Mar 2014 17:09:30 +0000 (11:09 -0600)
commite3418562940f7021b6d4d981666918964c84abb7
tree6ba828e34fecc1f8d199bf380817da715c1fc892
parent12b959c351d81a35139ad0e504f6f6896077dbd0
mesa: fix glMultiDrawArrays inside a display list

The underlying glDrawArrays() calls weren't getting compiled into
the display list.  We simply need to use the current dispatch table
so the CALL_DrawArrays() is routed to the display list save function.

This patch also fixes glMultiModeDrawArraysIBM and
glMultiModeDrawElementsIBM.

Fixes the new piglit gl-1.4-dlist-multidrawarrays test.

Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/varray.c