st/vega: Fix OpenVG demo segfaults.

When the paint is color, paint_bind_samplers binds a dummy sampler
without a texture.  It causes demos requiring a sampler (those use a
mask or an image) to crash.
This commit is contained in:
Chia-I Wu 2010-03-03 23:51:13 +08:00
parent 661b416e07
commit ee6fbf8d2f
1 changed files with 0 additions and 3 deletions

View File

@ -639,9 +639,6 @@ VGint paint_bind_samplers(struct vg_paint *paint, struct pipe_sampler_state **sa
}
break;
default:
samplers[0] = &paint->pattern.sampler; /* dummy */
textures[0] = 0;
return 0;
break;
}
return 0;