From 95a441112efbe14407f53d035e368b9632d06f06 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 11 Jan 2007 11:22:26 -0700 Subject: Fix a problem with inlined "return" statements. Make some attempt to free temporaries. --- src/mesa/shader/slang/slang_emit.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/shader/slang/slang_emit.h') diff --git a/src/mesa/shader/slang/slang_emit.h b/src/mesa/shader/slang/slang_emit.h index cd3352604f..73ae0827c0 100644 --- a/src/mesa/shader/slang/slang_emit.h +++ b/src/mesa/shader/slang/slang_emit.h @@ -51,6 +51,10 @@ _slang_clone_ir_storage(slang_ir_storage *store); extern GLint _slang_alloc_temporary(slang_gen_context *gc, GLint size); +extern void +_slang_free_temporary(slang_gen_context *gc, GLuint r, GLint size); + + extern GLboolean _slang_emit_code(slang_ir_node *n, slang_gen_context *gc, struct gl_program *prog, GLboolean withEnd); -- cgit v1.2.3