summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i915simple/i915_prim_vbuf.c
diff options
context:
space:
mode:
authorMichal <michal@tungstengraphics.com>2007-11-18 13:20:57 +0000
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2007-11-22 11:43:04 +0000
commit0e31e24659a1e691bdfa213fcd073bbfaa4ed6e9 (patch)
tree651c6dce46e5fed4afd5d75d68d1503676e4ae74 /src/mesa/pipe/i915simple/i915_prim_vbuf.c
parent5961732c1b59403b4e736fa354a64d4a0e5d8af2 (diff)
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.c6
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 1c8c6a37ba..736a08fb09 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;
}