From: Alex Deucher Date: Wed, 26 Aug 2009 15:09:59 +0000 (-0400) Subject: r600: fix memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f33853e56d841472f41db9c3c83276c3028a7375;p=mesa.git r600: fix memory leak --- 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)