diff options
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_fragprog.c | 3 |
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 e4a6d4cedf..78ce3ae436 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) |