From f33853e56d841472f41db9c3c83276c3028a7375 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 26 Aug 2009 11:09:59 -0400 Subject: [PATCH] r600: fix memory leak --- src/mesa/drivers/dri/r600/r700_fragprog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/r600/r700_fragprog.c b/src/mesa/drivers/dri/r600/r700_fragprog.c index e4a6d4cedf8..78ce3ae4366 100644 --- a/src/mesa/drivers/dri/r600/r700_fragprog.c +++ b/src/mesa/drivers/dri/r600/r700_fragprog.c @@ -268,7 +268,8 @@ void r700SelectFragmentShader(GLcontext *ctx) fp->r700AsmCode.bR6xx = 1; } - r700TranslateFragmentShader(fp, &(fp->mesa_program)); + if (GL_FALSE == fp->translated) + r700TranslateFragmentShader(fp, &(fp->mesa_program)); } void * r700GetActiveFpShaderBo(GLcontext * ctx) -- 2.30.2