draw: add const qualifiers
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 9 Dec 2008 16:54:16 +0000 (16:54 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 10 Dec 2008 12:52:06 +0000 (12:52 +0000)
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_context.h

index 41a4cba1ddde4a8af635b3d3191233f0980ba151..74deb44bd28545240b6234d5aa522f042c925004 100644 (file)
@@ -362,7 +362,7 @@ draw_set_mapped_element_buffer_range( struct draw_context *draw,
                                       unsigned eltSize,
                                       unsigned min_index,
                                       unsigned max_index,
-                                      void *elements )
+                                      const void *elements )
 {
    draw->pt.user.elts = elements;
    draw->pt.user.eltSize = eltSize;
@@ -374,7 +374,7 @@ draw_set_mapped_element_buffer_range( struct draw_context *draw,
 void
 draw_set_mapped_element_buffer( struct draw_context *draw,
                                 unsigned eltSize,
-                                void *elements )
+                                const void *elements )
 {
    draw->pt.user.elts = elements;
    draw->pt.user.eltSize = eltSize;
index 3eeb45353112db7b5c9549da2712fc2b90a4dd31..1d40c6c3bef28d6efe73e838ba03a95463c2dd8f 100644 (file)
@@ -123,11 +123,11 @@ draw_set_mapped_element_buffer_range( struct draw_context *draw,
                                       unsigned eltSize,
                                       unsigned min_index,
                                       unsigned max_index,
-                                      void *elements );
+                                      const void *elements );
 
 void draw_set_mapped_element_buffer( struct draw_context *draw,
                                      unsigned eltSize, 
-                                     void *elements );
+                                     const void *elements );
 
 void draw_set_mapped_vertex_buffer(struct draw_context *draw,
                                    unsigned attr, const void *buffer);