nvfx: fix for 64-bit systems

Thanks to Patrice Mandin for debugging this.
This commit is contained in:
Luca Barbieri 2010-04-13 09:02:42 +02:00
parent bf7e0e839f
commit 50409dd71b

View file

@ -492,7 +492,7 @@ nvfx_vbo_validate(struct nvfx_context *nvfx)
unsigned ib_format = nvfx->idxbuf_format;
int i;
int elements = MAX2(nvfx->vtxelt->num_elements, nvfx->hw_vtxelt_nr);
unsigned long vtxfmt[16];
uint32_t vtxfmt[16];
unsigned vb_flags = nvfx->screen->vertex_buffer_flags | NOUVEAU_BO_RD;
if (!elements)