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 c4de9d2..54fdcc1 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);
       }