diff options
author | Brian <brian@yutani.localnet.net> | 2007-01-04 17:22:19 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-01-04 17:22:19 -0700 |
commit | c9db223f902ce9d7e9f3038e6baac6da7f231b34 (patch) | |
tree | bb7eb01bc607a19dd4af154a1173dea51fef0208 /src/mesa/shader/slang | |
parent | 7edd2ecb55d4cdc4067303867453d7e534bfad38 (diff) |
move TexturesUsed[] into gl_program since vertex programs/shaders can use textures nowadays
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r-- | src/mesa/shader/slang/slang_emit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index ac92bdcece..4e1606be31 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -1034,7 +1034,6 @@ emit_jump(const char *target, struct gl_program *prog) static struct prog_instruction * emit_tex(slang_gen_context *gc, slang_ir_node *n, struct gl_program *prog) { - struct gl_fragment_program *fProg = (struct gl_fragment_program *) prog; struct prog_instruction *inst; if (n->Opcode == IR_TEX) { inst = new_instruction(prog, OPCODE_TEX); @@ -1052,7 +1051,7 @@ emit_tex(slang_gen_context *gc, slang_ir_node *n, struct gl_program *prog) inst->TexSrcTarget = n->TexTarget; inst->TexSrcUnit = 0; /* XXX temp */ - fProg->TexturesUsed[inst->TexSrcUnit] |= (1 << inst->TexSrcTarget); + prog->TexturesUsed[inst->TexSrcUnit] |= (1 << inst->TexSrcTarget); return inst; } |