diff options
author | Vinson Lee <[email protected]> | 2010-02-27 15:13:38 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-27 15:13:38 -0800 |
commit | 9db6a70af583242ba5012f3451cd30a07d16b95f (patch) | |
tree | f98de84169ee2f1cc0fbf744a3a88dc4cd3ec5fe /src/mesa/drivers | |
parent | b22437937fece754d9644a9d4ccb8db981d5e16c (diff) |
sis: Add assert to check function pointer is not null.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/sis/sis_tris.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |