diff options
author | Brian <[email protected]> | 2007-04-21 12:08:56 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-04-21 12:30:58 -0600 |
commit | cd3e39340f057712fcf02a35dff85645e475053a (patch) | |
tree | a7c6e2d0d6be2ccaa882075539e38935b77b5522 /src/mesa/shader/slang/slang_log.c | |
parent | ad3cc95485c488e3920f9c460b373338043000c5 (diff) |
Use new memory pool allocator. Lots of debug code still in place...
Diffstat (limited to 'src/mesa/shader/slang/slang_log.c')
-rw-r--r-- | src/mesa/shader/slang/slang_log.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_log.c b/src/mesa/shader/slang/slang_log.c index e8387444914..e9234bafec7 100644 --- a/src/mesa/shader/slang/slang_log.c +++ b/src/mesa/shader/slang/slang_log.c @@ -42,7 +42,11 @@ void slang_info_log_destruct(slang_info_log * log) { if (!log->dont_free_text) +#if 0 slang_alloc_free(log->text); +#else + _mesa_free(log->text); +#endif } static int @@ -59,10 +63,18 @@ slang_info_log_message(slang_info_log * log, const char *prefix, if (log->text != NULL) { GLuint old_len = slang_string_length(log->text); log->text = (char *) +#if 0 slang_alloc_realloc(log->text, old_len + 1, old_len + size); +#else + _mesa_realloc(log->text, old_len + 1, old_len + size); +#endif } else { +#if 0 log->text = (char *) (slang_alloc_malloc(size)); +#else + log->text = (char *) (_mesa_malloc(size)); +#endif if (log->text != NULL) log->text[0] = '\0'; } |