diff options
author | Marek Olšák <[email protected]> | 2010-08-26 03:28:47 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-08-26 07:19:10 +0200 |
commit | c1ab2c327e37119b5dda3de85f672a8af22ad1bb (patch) | |
tree | ae5b567af6c479e1859dd773cf1ffac08dbcf8d0 /src | |
parent | fdf054a585882d5f9497384749bf33842f5d1ec4 (diff) |
r300g: fix constant buffer upload once again for r3xx->r4xx
Diffstat (limited to 'src')
-rw-r--r-- | 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 90bc9c56d38..58d7e4ffe93 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -182,7 +182,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); if (buf->remap_table){ for (i = 0; i < count; i++) { - uint32_t *data = &buf->ptr[buf->remap_table[i]*4]; + float *data = (float*)&buf->ptr[buf->remap_table[i]*4]; for (j = 0; j < 4; j++) OUT_CS(pack_float24(data[j])); } |