draw: avoid aliasing warning

This commit is contained in:
Keith Whitwell 2008-05-01 15:30:50 +01:00
parent 47aa416821
commit 6980823da9

View 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);
}