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

« back to all changes in this revision

Viewing changes to src/gallium/auxiliary/util/u_clear.h

  • 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:
40
40
static INLINE void
41
41
util_clear(struct pipe_context *pipe,
42
42
           struct pipe_framebuffer_state *framebuffer, unsigned buffers,
43
 
           const float *rgba, double depth, unsigned stencil)
 
43
           const union pipe_color_union *color, double depth, unsigned stencil)
44
44
{
45
45
   if (buffers & PIPE_CLEAR_COLOR) {
46
46
      unsigned i;
47
47
      for (i = 0; i < framebuffer->nr_cbufs; i++) {
48
48
         struct pipe_surface *ps = framebuffer->cbufs[i];
49
 
         pipe->clear_render_target(pipe, ps, rgba, 0, 0, ps->width, ps->height);
 
49
         pipe->clear_render_target(pipe, ps, color, 0, 0, ps->width, ps->height);
50
50
      }
51
51
   }
52
52