Mesa (mesa_7_7_branch): vega: fix incorrect samplers, textures indexes in blend_bind_samplers()
Brian Paul
brianp at kemper.freedesktop.org
Mon Jan 25 16:56:51 UTC 2010
Module: Mesa
Branch: mesa_7_7_branch
Commit: 0d051af6127d206d165a1034ca0795ce8fdcd389
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0d051af6127d206d165a1034ca0795ce8fdcd389
Author: Igor Oliveira <igor.oliveira at openbossa.org>
Date: Mon Jan 25 09:53:53 2010 -0700
vega: fix incorrect samplers, textures indexes in blend_bind_samplers()
Fixes fd.o bug 25863.
Signed-off-by: Brian Paul <brianp at vmware.com>
---
src/gallium/state_trackers/vega/shader.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/vega/shader.c b/src/gallium/state_trackers/vega/shader.c
index d9074a3..91909da 100644
--- a/src/gallium/state_trackers/vega/shader.c
+++ b/src/gallium/state_trackers/vega/shader.c
@@ -135,8 +135,8 @@ static VGint blend_bind_samplers(struct vg_context *ctx,
textures[2] = stfb->blend_texture;
if (!samplers[0] || !textures[0]) {
- samplers[1] = samplers[2];
- textures[1] = textures[2];
+ samplers[0] = samplers[2];
+ textures[0] = textures[2];
}
if (!samplers[1] || !textures[1]) {
samplers[1] = samplers[0];
More information about the mesa-commit
mailing list