remove unneeded CallStack array
authorBrian <brian.paul@tungstengraphics.com>
Thu, 23 Aug 2007 07:16:52 +0000 (08:16 +0100)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 23 Aug 2007 07:19:31 +0000 (08:19 +0100)
src/mesa/main/dlist.c
src/mesa/main/mtypes.h

index be2f438..5b93910 100644 (file)
@@ -5737,8 +5737,6 @@ execute_list(GLcontext *ctx, GLuint list)
    if (!dlist)
       return;
 
-   ctx->ListState.CallStack[ctx->ListState.CallDepth++] = dlist;
-
    if (ctx->Driver.BeginCallList)
       ctx->Driver.BeginCallList(ctx, dlist);
 
@@ -6625,8 +6623,6 @@ execute_list(GLcontext *ctx, GLuint list)
 
    if (ctx->Driver.EndCallList)
       ctx->Driver.EndCallList(ctx);
-
-   ctx->ListState.CallStack[ctx->ListState.CallDepth--] = NULL;
 }
 
 
index 1145f36..f5a8c97 100644 (file)
@@ -2866,7 +2866,6 @@ struct mesa_display_list
  */
 struct gl_dlist_state
 {
-   struct mesa_display_list *CallStack[MAX_LIST_NESTING];
    GLuint CallDepth;           /**< Current recursion calling depth */
 
    struct mesa_display_list *CurrentList;