From 9db6a70af583242ba5012f3451cd30a07d16b95f Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 27 Feb 2010 15:13:38 -0800 Subject: [PATCH] sis: Add assert to check function pointer is not null. --- src/mesa/drivers/dri/sis/sis_tris.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/sis/sis_tris.c b/src/mesa/drivers/dri/sis/sis_tris.c index 4b41d78d82a..e7471f97891 100644 --- a/src/mesa/drivers/dri/sis/sis_tris.c +++ b/src/mesa/drivers/dri/sis/sis_tris.c @@ -994,6 +994,7 @@ sisFlushPrimsLocked(sisContextPtr smesa) MMIO(REG_3D_PrimitiveSet, smesa->dwPrimitiveSet); } while (smesa->vb_last < smesa->vb_cur) { + assert(sis_emit_func); sis_emit_func(smesa, (char *)smesa->vb_last); smesa->vb_last += incr; } -- 2.30.2