~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/gallium/state_trackers/vega/paint.c

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
   const VGfloat def_ling[] = {0.0f, 0.0f, 1.0f, 0.0f};
200
200
   const VGfloat def_radg[] = {0.0f, 0.0f, 0.0f, 0.0f, 1.0f};
201
201
   vg_init_object(&paint->base, ctx, VG_OBJECT_PAINT);
202
 
   vg_context_add_object(ctx, VG_OBJECT_PAINT, paint);
 
202
   vg_context_add_object(ctx, &paint->base);
203
203
 
204
204
   paint->type = VG_PAINT_TYPE_COLOR;
205
205
   memcpy(paint->solid.color, default_color,
230
230
   if (paint->pattern.sampler_view)
231
231
      pipe_sampler_view_reference(&paint->pattern.sampler_view, NULL);
232
232
   if (ctx)
233
 
      vg_context_remove_object(ctx, VG_OBJECT_PAINT, paint);
 
233
      vg_context_remove_object(ctx, &paint->base);
234
234
 
235
235
   free(paint->gradient.ramp_stopsi);
236
236
   free(paint->gradient.ramp_stops);
652
652
   }
653
653
      break;
654
654
   case VG_PAINT_TYPE_PATTERN: {
655
 
      memcpy(paint->pattern.sampler.border_color,
 
655
      memcpy(paint->pattern.sampler.border_color.f,
656
656
             ctx->state.vg.tile_fill_color,
657
657
             sizeof(VGfloat) * 4);
658
658
      paint->pattern.sampler.min_img_filter = image_sampler_filter(ctx);