diff options
| author | Brian Paul <brianp@vmware.com> | 2009-09-24 11:03:16 -0600 |
|---|---|---|
| committer | Brian Paul <brianp@vmware.com> | 2009-09-24 11:03:16 -0600 |
| commit | c9f7a23ef05adfd2ebae56ee9f1b19897a589831 (patch) | |
| tree | a2107e8f2bf720dd7ad46f64b8c8dc6a693310d6 /src/mesa/shader/prog_execute.c | |
| parent | 6be2bc56af5c0d281d07e427863789e949904db1 (diff) | |
| parent | 7549a8397b310acf672f97a08c8e7d866cdf492c (diff) | |
Merge branch 'mesa_7_6_branch'
Conflicts:
src/mesa/drivers/dri/r600/r700_assembler.c
src/mesa/drivers/dri/r600/r700_chip.c
src/mesa/drivers/dri/r600/r700_render.c
src/mesa/drivers/dri/r600/r700_vertprog.c
src/mesa/drivers/dri/r600/r700_vertprog.h
src/mesa/drivers/dri/radeon/radeon_span.c
Diffstat (limited to 'src/mesa/shader/prog_execute.c')
| -rw-r--r-- | src/mesa/shader/prog_execute.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mesa/shader/prog_execute.c b/src/mesa/shader/prog_execute.c index c8a762f8ff..69b81e724a 100644 --- a/src/mesa/shader/prog_execute.c +++ b/src/mesa/shader/prog_execute.c @@ -1555,17 +1555,12 @@ _mesa_execute_program(GLcontext * ctx, case OPCODE_TXB: /* GL_ARB_fragment_program only */ /* Texel lookup with LOD bias */ { - const GLuint unit = machine->Samplers[inst->TexSrcUnit]; - const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; GLfloat texcoord[4], color[4], lodBias; fetch_vector4(&inst->SrcReg[0], machine, texcoord); /* texcoord[3] is the bias to add to lambda */ - lodBias = texUnit->LodBias + texcoord[3]; - if (texUnit->_Current) { - lodBias += texUnit->_Current->LodBias; - } + lodBias = texcoord[3]; fetch_texel(ctx, machine, inst, texcoord, lodBias, color); |
