Fix up some loose ends from the last big check-in.
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 18 Jul 2003 15:22:16 +0000 (15:22 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 18 Jul 2003 15:22:16 +0000 (15:22 +0000)
src/mesa/main/context.c
src/mesa/main/depth.c
src/mesa/main/extensions.c
src/mesa/main/matrix.c
src/mesa/main/texstate.c

index adcdce0..a8352bb 100644 (file)
@@ -1195,7 +1195,6 @@ _mesa_initialize_context( GLcontext *ctx,
 
    if (!init_attrib_groups( ctx )) {
       free_shared_state(ctx, ctx->Shared);
-      fprintf(stderr, "%s: failed to init attrib groups\n", __FUNCTION__);
       return GL_FALSE;
    }
 
@@ -1313,7 +1312,6 @@ _mesa_initialize_context( GLcontext *ctx,
 
 #endif
 
-   fprintf(stderr, "%s: succeded\n", __FUNCTION__);
    return GL_TRUE;
 }
 
@@ -1398,7 +1396,8 @@ _mesa_free_context_data( GLcontext *ctx )
       free_shared_state( ctx, ctx->Shared );
    }
 
-   _mesa_extensions_dtr(ctx);
+   if (ctx->Extensions.String)
+      FREE((void *) ctx->Extensions.String);
 
    FREE(ctx->Exec);
    FREE(ctx->Save);
index fa7eb63..32c6162 100644 (file)
@@ -26,8 +26,9 @@
 #include "glheader.h"
 #include "imports.h"
 #include "context.h"
-#include "enums.h"
 #include "depth.h"
+#include "enums.h"
+#include "hash.h"
 #include "macros.h"
 #include "mtypes.h"
 
index db5c43e..efc9267 100644 (file)
@@ -427,10 +427,3 @@ _mesa_make_extension_string( GLcontext *ctx )
 
    return s;
 }
-
-void 
-_mesa_extensions_dtr( GLcontext *ctx ) 
-{
-   if (ctx->Extensions.String)
-      FREE((void *) ctx->Extensions.String);
-}
index 7e2d91e..6a34858 100644 (file)
@@ -42,6 +42,7 @@
 #include "matrix.h"
 #include "mtypes.h"
 #include "math/m_matrix.h"
+#include "math/m_xform.h"
 
 
 /**
index 59fd7a9..d61b201 100644 (file)
@@ -2987,5 +2987,5 @@ void _mesa_free_texture_data( GLcontext *ctx )
    (ctx->Driver.DeleteTexture)(ctx,  ctx->Texture.ProxyRect );
 
    for (i = 0; i < MAX_TEXTURE_IMAGE_UNITS; i++)
-      _mesa_free_colortable_data( &ctx->Texture.Unit[i].ColorTable );
+      _mesa_free_one_colortable( &ctx->Texture.Unit[i].ColorTable );
 }