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

« back to all changes in this revision

Viewing changes to src/gallium/tests/graw/vs-test.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:
223
223
 
224
224
static void draw( void )
225
225
{
226
 
   float clear_color[4] = {.1,.3,.5,0};
 
226
   union pipe_color_union clear_color = { {.1,.3,.5,0} };
227
227
 
228
 
   ctx->clear(ctx, PIPE_CLEAR_COLOR, clear_color, 0, 0);
 
228
   ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
229
229
   util_draw_arrays(ctx, PIPE_PRIM_POINTS, 0, Elements(vertices));
230
230
   ctx->flush(ctx, NULL);
231
231
 
456
456
      rasterizer.cull_face = PIPE_FACE_NONE;
457
457
      rasterizer.point_size = 8.0;
458
458
      rasterizer.gl_rasterization_rules = 1;
 
459
      rasterizer.depth_clip = 1;
459
460
      handle = ctx->create_rasterizer_state(ctx, &rasterizer);
460
461
      ctx->bind_rasterizer_state(ctx, handle);
461
462
   }