mesa: Make glPrimitiveRestartIndex execute immediately in display lists.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 10 Jun 2012 01:06:17 +0000 (18:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Jun 2012 20:28:23 +0000 (13:28 -0700)
From the GL_NV_primitive_restart spec:
"PrimitiveRestartIndexNV is not compiled into display lists, but is
 executed immediately."

Prior to this patch, calls to glPrimitiveRestartIndex would hit the noop
dispatch stub.

+2 oglconforms.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/dlist.c

index c1c65ea25d2814a7262eec105634f2f9254f1715..e04f7ae6bbe947ce4f69b5939c602adc11a9a995 100644 (file)
@@ -10445,6 +10445,9 @@ _mesa_create_save_table(void)
    /* GL_ARB_debug_output (no dlist support) */
    _mesa_init_errors_dispatch(table);
 
+   /* GL_NV_primitive_restart */
+   SET_PrimitiveRestartIndexNV(table, _mesa_PrimitiveRestartIndex);
+
    return table;
 }