This patch fix segfaults in mask.cpp and mask4.cpp binding a missing
texture in mask bind samplers.

Igor
From a8ceac97c316abc56b31b6cadd826eae8f3bcbe8 Mon Sep 17 00:00:00 2001
From: Igor Oliveira <igor.olive...@openbossa.org>
Date: Tue, 2 Feb 2010 19:19:52 -0400
Subject: [PATCH] vega: fix missing texture in mask when setup samplers

---
 src/gallium/state_trackers/vega/mask.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/vega/mask.c b/src/gallium/state_trackers/vega/mask.c
index ba8ecef..0fb5639 100644
--- a/src/gallium/state_trackers/vega/mask.c
+++ b/src/gallium/state_trackers/vega/mask.c
@@ -681,6 +681,7 @@ VGint mask_bind_samplers(struct pipe_sampler_state **samplers,
 
       samplers[1] = &ctx->mask.sampler;
       textures[1] = fb_buffers->alpha_mask;
+      textures[0] = fb_buffers->blend_texture;
       return 1;
    } else
       return 0;
-- 
1.6.3.3

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to