diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-07-18 15:22:16 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-07-18 15:22:16 +0000 |
commit | 702ca20bf08be7a4007defc5d91094e8b7d2ef8e (patch) | |
tree | 9b70072adcc1851dc412412c12fb90359121e665 /src | |
parent | c19cbb58cd2862393d67b62a5fc523b6fa1ac9a6 (diff) |
Fix up some loose ends from the last big check-in.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/context.c | 5 | ||||
-rw-r--r-- | src/mesa/main/depth.c | 3 | ||||
-rw-r--r-- | src/mesa/main/extensions.c | 7 | ||||
-rw-r--r-- | src/mesa/main/matrix.c | 1 | ||||
-rw-r--r-- | src/mesa/main/texstate.c | 2 |
5 files changed, 6 insertions, 12 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index adcdce09cd..a8352bbe2f 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -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); diff --git a/src/mesa/main/depth.c b/src/mesa/main/depth.c index fa7eb63b06..32c61622f7 100644 --- a/src/mesa/main/depth.c +++ b/src/mesa/main/depth.c @@ -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" diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index db5c43e42d..efc92673ab 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -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); -} diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c index 7e2d91e631..6a3485876d 100644 --- a/src/mesa/main/matrix.c +++ b/src/mesa/main/matrix.c @@ -42,6 +42,7 @@ #include "matrix.h" #include "mtypes.h" #include "math/m_matrix.h" +#include "math/m_xform.h" /** diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 59fd7a9928..d61b2019e5 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -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 ); } |