diff options
author | Zack Rusin <[email protected]> | 2008-04-14 12:32:25 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2008-04-14 12:32:25 -0400 |
commit | 983b6a73e1842b436d158dc1d018bd483a1c9929 (patch) | |
tree | e08b57f695fdca86361f19378eacdca43af6ddf8 /src/gallium/auxiliary/draw/draw_context.c | |
parent | 2ba6e1fa71be07a2d75abe2d085d485046c0932b (diff) |
use the new macro
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_context.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 1e70a775233..0c314f6e1da 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -88,8 +88,7 @@ struct draw_context *draw_create( void ) /* Statically allocate maximum sized vertices for the cache - could be cleverer... */ { - const unsigned size = (MAX_VERTEX_SIZE + 0x0f) & ~0x0f; - char *tmp = align_malloc(VS_QUEUE_LENGTH * size, 16); + char *tmp = align_malloc(VS_QUEUE_LENGTH * MAX_VERTEX_ALLOCATION, 16); if (!tmp) goto fail; |