From c8c3db0193d572108b6afbc3c10787ffbe7988ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 17 Jul 2010 15:35:03 +0200 Subject: [PATCH] r300g: attempt to fix r3xx constant buffer emission again --- src/gallium/drivers/r300/r300_emit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index 167e3c0..36a26a7 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -181,7 +181,7 @@ void r300_emit_fs_constants(struct r300_context* r300, unsigned size, void *stat OUT_CS_REG_SEQ(R300_PFS_PARAM_0_X, count * 4); for (i = 0; i < count; i++) for (j = 0; j < 4; j++) - OUT_CS(pack_float24(buf->ptr[i*4+j])); + OUT_CS(pack_float24(*(float*)&buf->ptr[i*4+j])); END_CS; } -- 1.7.0.4