A new version and a little improvement.
Makes more sense adding the texture in paint bind samplers than mask
bind samplers.

Igor

On Wed, Feb 3, 2010 at 6:21 AM, Igor Oliveira
<igor.olive...@openbossa.org> wrote:
> This patch fix segfaults in mask.cpp and mask4.cpp binding a missing
> texture in mask bind samplers.
>
> Igor
>
From 803e77b0b4d03cf8b17b0a3b2f6f080db7f519c1 Mon Sep 17 00:00:00 2001
From: Igor Oliveira <igor.olive...@openbossa.org>
Date: Wed, 3 Feb 2010 10:14:48 -0400
Subject: [PATCH] vega: add dummy texture when setuping paint textures.
 Making it we do not have problems when using mask operations

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

diff --git a/src/gallium/state_trackers/vega/paint.c b/src/gallium/state_trackers/vega/paint.c
index d8f6299..46a6930 100644
--- a/src/gallium/state_trackers/vega/paint.c
+++ b/src/gallium/state_trackers/vega/paint.c
@@ -640,7 +640,7 @@ VGint paint_bind_samplers(struct vg_paint *paint, struct pipe_sampler_state **sa
       break;
    default:
       samplers[0] = &paint->pattern.sampler; /* dummy */
-      textures[0] = 0;
+      textures[0] = ctx->draw_buffer->alpha_mask; /* dummy */
       return 0;
       break;
    }
-- 
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