mesa: finish implementing glPrimitiveRestartNV() for display lists
authorBrian Paul <brianp@vmware.com>
Thu, 6 Jul 2017 23:54:49 +0000 (17:54 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Jul 2017 18:22:46 +0000 (12:22 -0600)
commit9ac55e8219e1f6abeab3c779c8fe710c2bc25f2b
treed703c4a13687819611f5f735c5d6fa0bf296129d
parentf5c8bb1e00f358e05ed21f8ed69c9fc3803bf95f
mesa: finish implementing glPrimitiveRestartNV() for display lists

If we try to build a display list with just a glPrimitiveRestartNV()
call, we'd crash because of a null GLvertexformat::PrimitiveRestartNV
pointer.  This change fixes that case.

The previous patch fixed the case of calling glPrimitiveRestartNV()
inside a glBegin/End pair.

v2: minor clean-up in save_PrimitiveRestartNV(), per Charmaine.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/main/dlist.c