diff options
author | Michal <michal@tungstengraphics.com> | 2007-11-18 13:20:57 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@tungstengraphics.com> | 2007-11-22 11:43:04 +0000 |
commit | 0e31e24659a1e691bdfa213fcd073bbfaa4ed6e9 (patch) | |
tree | 651c6dce46e5fed4afd5d75d68d1503676e4ae74 /src/mesa/pipe/i915simple/i915_prim_vbuf.c | |
parent | 5961732c1b59403b4e736fa354a64d4a0e5d8af2 (diff) | |
download | external_mesa3d-0e31e24659a1e691bdfa213fcd073bbfaa4ed6e9.zip external_mesa3d-0e31e24659a1e691bdfa213fcd073bbfaa4ed6e9.tar.gz external_mesa3d-0e31e24659a1e691bdfa213fcd073bbfaa4ed6e9.tar.bz2 |
Fix compatibility issues between gcc and msvc.
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_prim_vbuf.c')
-rw-r--r-- | src/mesa/pipe/i915simple/i915_prim_vbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/pipe/i915simple/i915_prim_vbuf.c b/src/mesa/pipe/i915simple/i915_prim_vbuf.c index 1c8c6a3..736a08f 100644 --- a/src/mesa/pipe/i915simple/i915_prim_vbuf.c +++ b/src/mesa/pipe/i915simple/i915_prim_vbuf.c @@ -202,7 +202,7 @@ static void vbuf_tri( struct draw_stage *stage, for (i = 0; i < 3; i++) { emit_vertex( vbuf, prim->v[i] ); - vbuf->element_map[vbuf->nr_elements++] = prim->v[i]->vertex_id; + vbuf->element_map[vbuf->nr_elements++] = (ushort) prim->v[i]->vertex_id; } } @@ -218,7 +218,7 @@ static void vbuf_line(struct draw_stage *stage, for (i = 0; i < 2; i++) { emit_vertex( vbuf, prim->v[i] ); - vbuf->element_map[vbuf->nr_elements++] = prim->v[i]->vertex_id; + vbuf->element_map[vbuf->nr_elements++] = (ushort) prim->v[i]->vertex_id; } } @@ -232,7 +232,7 @@ static void vbuf_point(struct draw_stage *stage, emit_vertex( vbuf, prim->v[0] ); - vbuf->element_map[vbuf->nr_elements++] = prim->v[0]->vertex_id; + vbuf->element_map[vbuf->nr_elements++] = (ushort) prim->v[0]->vertex_id; } |