summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-12-12 10:29:15 -0700
committerBrian Paul <brianp@vmware.com>2009-01-06 09:09:47 -0700
commit18dd05fbc57a1d4d75f8a5244345dd6fb1066e53 (patch)
treece3a27628320a22ffb72177d119fa94774dd4e46 /src/mesa/shader
parentc22801841ce9415f5a34b86a62e43cf38ef70d66 (diff)
mesa: use _slang_alloc()
(cherry picked from commit b4019483dea406e997ae1c6b61b41cc49786c8ce)
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/slang/slang_compile_function.c2
-rw-r--r--src/mesa/shader/slang/slang_typeinfo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_compile_function.c b/src/mesa/shader/slang/slang_compile_function.c
index ba65be58df..c460627a41 100644
--- a/src/mesa/shader/slang/slang_compile_function.c
+++ b/src/mesa/shader/slang/slang_compile_function.c
@@ -70,7 +70,7 @@ slang_function *
slang_function_new(slang_function_kind kind)
{
slang_function *fun = (slang_function *)
- _mesa_malloc(sizeof(slang_function));
+ _slang_alloc(sizeof(slang_function));
if (fun) {
slang_function_construct(fun);
fun->kind = kind;
diff --git a/src/mesa/shader/slang/slang_typeinfo.c b/src/mesa/shader/slang/slang_typeinfo.c
index 2006c7e35e..5ee54c3a11 100644
--- a/src/mesa/shader/slang/slang_typeinfo.c
+++ b/src/mesa/shader/slang/slang_typeinfo.c
@@ -296,7 +296,7 @@ slang_type_specifier_new(slang_type_specifier_type type,
struct slang_type_specifier_ *_array)
{
slang_type_specifier *spec =
- (slang_type_specifier *) _mesa_malloc(sizeof(slang_type_specifier));
+ (slang_type_specifier *) _slang_alloc(sizeof(slang_type_specifier));
if (spec) {
spec->type = type;
spec->_struct = _struct;