summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2009-08-26 11:09:59 -0400
committerAlex Deucher <[email protected]>2009-08-26 11:09:59 -0400
commitf33853e56d841472f41db9c3c83276c3028a7375 (patch)
tree00449da41e14f0be74bd8137540502fcc2efafdd
parent18e0fea55bbc41ce81397f22aa2c91e4feefee55 (diff)
r600: fix memory leak
-rw-r--r--src/mesa/drivers/dri/r600/r700_fragprog.c3
1 files changed, 2 insertions, 1 deletions
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)