diff options
author | Brian <[email protected]> | 2007-10-24 14:35:40 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-24 14:35:40 -0600 |
commit | 40a0b053f78acd0a08f6876518b8e9301480431f (patch) | |
tree | 6ca70655441fd94a8518880d6d1da19eee7634a6 /src/mesa/pipe/i915simple/i915_context.c | |
parent | 11ce6244a79106c592364b30434b6ddade3fd6bb (diff) |
Revert "Undo indexOffset change (I think, git???)"
This reverts commit 11ce6244a79106c592364b30434b6ddade3fd6bb.
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_context.c')
-rw-r--r-- | src/mesa/pipe/i915simple/i915_context.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/pipe/i915simple/i915_context.c b/src/mesa/pipe/i915simple/i915_context.c index adc91fb4736..161f8ce6972 100644 --- a/src/mesa/pipe/i915simple/i915_context.c +++ b/src/mesa/pipe/i915simple/i915_context.c @@ -178,7 +178,7 @@ i915_end_query(struct pipe_context *pipe, struct pipe_query_object *q) static boolean i915_draw_elements( struct pipe_context *pipe, struct pipe_buffer_handle *indexBuffer, - unsigned indexSize, unsigned indexOffset, + unsigned indexSize, unsigned prim, unsigned start, unsigned count) { struct i915_context *i915 = i915_context( pipe ); @@ -202,10 +202,9 @@ i915_draw_elements( struct pipe_context *pipe, } /* Map index buffer, if present */ if (indexBuffer) { - ubyte *mapped_indexes + void *mapped_indexes = pipe->winsys->buffer_map(pipe->winsys, indexBuffer, PIPE_BUFFER_FLAG_READ); - mapped_indexes += indexOffset; draw_set_mapped_element_buffer(draw, indexSize, mapped_indexes); } else { @@ -263,7 +262,7 @@ i915_draw_elements( struct pipe_context *pipe, static boolean i915_draw_arrays( struct pipe_context *pipe, unsigned prim, unsigned start, unsigned count) { - return i915_draw_elements(pipe, NULL, 0, 0, prim, start, count); + return i915_draw_elements(pipe, NULL, 0, prim, start, count); } |