summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/arbprogparse.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-11-18 11:51:59 +1100
committerTimothy Arceri <[email protected]>2016-11-18 23:39:40 +1100
commit88fe2c308ec0902b8f3980f9ce6ab6241ba74c14 (patch)
tree14703d1edc55e0c6907385554dff99a30aa8eb3a /src/mesa/program/arbprogparse.c
parentda2a51129bfcb761d10a7a0b3c6579aa0adc5137 (diff)
mesa: fix old classic drivers to use ralloc for ARB asm programs
These changes were missed in 0ad69e6b5. Acked-by: Edward O'Callaghan <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98767
Diffstat (limited to 'src/mesa/program/arbprogparse.c')
-rw-r--r--src/mesa/program/arbprogparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/program/arbprogparse.c b/src/mesa/program/arbprogparse.c
index 196d30f4daf..9b843f628c1 100644
--- a/src/mesa/program/arbprogparse.c
+++ b/src/mesa/program/arbprogparse.c
@@ -85,7 +85,7 @@ _mesa_parse_arb_fragment_program(struct gl_context* ctx, GLenum target,
return;
}
- free(program->String);
+ ralloc_free(program->String);
/* Copy the relevant contents of the arb_program struct into the
* fragment_program struct.
@@ -121,7 +121,7 @@ _mesa_parse_arb_fragment_program(struct gl_context* ctx, GLenum target,
program->info.fs.uses_discard = state.fragment.UsesKill;
- free(program->arb.Instructions);
+ ralloc_free(program->arb.Instructions);
program->arb.Instructions = prog.arb.Instructions;
if (program->Parameters)