diff options
author | Brian Paul <[email protected]> | 2003-07-03 03:02:44 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-07-03 03:02:44 +0000 |
commit | 32bac60519dab482cd3f44355563750a4521f4cb (patch) | |
tree | 09304d1aad76f513b04530ed56234b8f3f4e17ed /src/mesa/main/dlist.c | |
parent | de4f460e20cf76ece883530ffe3f82a0afc817f3 (diff) |
tweak checks for display list zero
Diffstat (limited to 'src/mesa/main/dlist.c')
-rw-r--r-- | src/mesa/main/dlist.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 4399385cc18..8513b458018 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -4452,7 +4452,7 @@ execute_list( GLcontext *ctx, GLuint list ) Node *n; GLboolean done; - if (!islist(ctx,list)) + if (list == 0 || !islist(ctx,list)) return; if (ctx->Driver.BeginCallList) @@ -5354,6 +5354,11 @@ _mesa_CallList( GLuint list ) if (MESA_VERBOSE & VERBOSE_API) _mesa_debug(ctx, "glCallList %d\n", list); + if (list == 0) { + _mesa_error(ctx, GL_INVALID_VALUE, "glCallList(list==0)"); + return; + } + /* mesa_print_display_list( list ); */ save_compile_flag = ctx->CompileFlag; |