diff options
author | Keith Whitwell <[email protected]> | 2008-03-23 18:21:00 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-03-23 18:21:00 +0000 |
commit | 301b187ca9a811b608894d20bab934af0a10b8ab (patch) | |
tree | a2721ffcfcfcd79e2e69515c369b252b16d9ae15 /src/gallium/auxiliary/draw/draw_pt.h | |
parent | f40357e25c0520ef1d64ffab03501da4c8b93529 (diff) |
draw: fix some unsigned vs ushort confusion
Middle-end elements are ushort, but prior to that have to treat all
elements as unsigned to avoid wrapping and/or overruns.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt.h b/src/gallium/auxiliary/draw/draw_pt.h index 1b81d196f62..f56fa8d5ccd 100644 --- a/src/gallium/auxiliary/draw/draw_pt.h +++ b/src/gallium/auxiliary/draw/draw_pt.h @@ -35,7 +35,7 @@ #include "pipe/p_compiler.h"
-typedef ushort (*pt_elt_func)( const void *elts, ushort idx );
+typedef unsigned (*pt_elt_func)( const void *elts, unsigned idx );
/* The "front end" - prepare sets of fetch, draw elements for the
|