Double-buffer generated instructions and only notify driver when the
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 10 May 2005 18:09:17 +0000 (18:09 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 10 May 2005 18:09:17 +0000 (18:09 +0000)
generated program differs from the previous one.

src/mesa/main/texenvprogram.c

index eb7842cdf1c5d37e1a1716648eb4013a4b91deab..caedb20af129b9e42f166216c1caefa360dd9104 100644 (file)
@@ -789,7 +789,6 @@ void _mesa_UpdateTexEnvProgram( GLcontext *ctx )
        db_NumInstructions != p.program->Base.NumInstructions ||
        memcmp(db_Instructions, p.program->Instructions, 
              db_NumInstructions * sizeof(*db_Instructions)) != 0) {
-      _mesa_printf("new program string\n");
       ctx->Driver.ProgramStringNotify( ctx, GL_FRAGMENT_PROGRAM_ARB, 
                                       &p.program->Base );
    }