r300: Remove GLcontext from r300_fragment_program_compiler
authorNicolai Hähnle <nhaehnle@gmail.com>
Thu, 16 Jul 2009 20:40:53 +0000 (22:40 +0200)
committerNicolai Hähnle <nhaehnle@gmail.com>
Mon, 27 Jul 2009 18:32:03 +0000 (20:32 +0200)
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
src/mesa/drivers/dri/r300/compiler/radeon_compiler.h
src/mesa/drivers/dri/r300/r300_fragprog_common.c

index e1a691db4fb2f461345f05727caae7054866bbd4..92560b5d8ae7d69b8dbfd2d772afe37e935fc17e 100644 (file)
@@ -149,7 +149,6 @@ struct rX00_fragment_program_code {
 };
 
 struct r300_fragment_program_compiler {
-       GLcontext * ctx;
        struct rX00_fragment_program_code *code;
        struct gl_program *program;
        struct r300_fragment_program_external_state state;
index f28162a2b6a7c933ac9fa5c116cb7756be68e726..b37f29691269e6aae78002a960c122aeaf58bbd3 100644 (file)
@@ -95,7 +95,6 @@ void r300TranslateFragmentShader(GLcontext *ctx, struct r300_fragment_program *f
        r300ContextPtr r300 = R300_CONTEXT(ctx);
        struct r300_fragment_program_compiler compiler;
 
-       compiler.ctx = ctx;
        compiler.code = &fp->code;
        compiler.state = fp->state;
        compiler.program = fp->Base;