diff options
author | Michal Krol <[email protected]> | 2009-06-22 09:14:14 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-07 10:11:48 +0200 |
commit | 2dad8ed9d68289ba25a4023da12fc5ddf6a621dd (patch) | |
tree | 28a141fb7ae18ce6402c0079d9391aecaeb5b118 /src/glsl/pp/sl_pp_process.c | |
parent | 6a11d4150cfcdd646c17f8b365b5481c2c583208 (diff) |
glsl: Centralise sl_pp_macro constructor.
Diffstat (limited to 'src/glsl/pp/sl_pp_process.c')
-rw-r--r-- | src/glsl/pp/sl_pp_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/pp/sl_pp_process.c b/src/glsl/pp/sl_pp_process.c index e930966604c..baffaf2cd95 100644 --- a/src/glsl/pp/sl_pp_process.c +++ b/src/glsl/pp/sl_pp_process.c @@ -133,7 +133,7 @@ sl_pp_process(struct sl_pp_context *context, last = i - 1; if (!strcmp(name, "define")) { - *macro = malloc(sizeof(struct sl_pp_macro)); + *macro = sl_pp_macro_new(); if (!*macro) { return -1; } |