draw: avoid aliasing warning
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 1 May 2008 14:30:50 +0000 (15:30 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 1 May 2008 14:37:30 +0000 (15:37 +0100)
src/gallium/auxiliary/draw/draw_pipe_pstipple.c

index c4de9d2698e0155142644a8a64797f78acb2e471..54fdcc1a3bad6f45f4a705d8d191ae0a37531ed6 100644 (file)
@@ -256,7 +256,7 @@ pstip_transform_inst(struct tgsi_transform_context *ctx,
          uint size = 4;
          immed = tgsi_default_full_immediate();
          immed.Immediate.Size = 1 + size; /* one for the token itself */
-         immed.u.ImmediateFloat32 = (struct tgsi_immediate_float32 *) value;
+         immed.u.Pointer = value;
          ctx->emit_immediate(ctx, &immed);
       }