remove stray 'foo' line
[mesa.git] / src / glx / x11 / indirect_vertex_array.c
index d4e6ab99ca99fe2591f26402cac96f71d6b686ef..2a8c68eec8c425459fe41626f2a21bfc37c248e8 100644 (file)
@@ -382,13 +382,14 @@ allocate_array_info_cache( struct array_state_vector * arrays,
 {
 #define MAX_HEADER_SIZE 20
     if ( arrays->array_info_cache_buffer_size < required_size ) {
-       GLubyte * temp = realloc( arrays->array_info_cache, required_size 
-                                 + MAX_HEADER_SIZE );
+       GLubyte * temp = realloc( arrays->array_info_cache_base,
+                                 required_size + MAX_HEADER_SIZE );
 
        if ( temp == NULL ) {
            return GL_FALSE;
        }
 
+       arrays->array_info_cache_base = temp;
        arrays->array_info_cache = temp + MAX_HEADER_SIZE;
        arrays->array_info_cache_buffer_size = required_size;
     }
@@ -419,7 +420,6 @@ fill_array_info_cache( struct array_state_vector * arrays )
        }
     }
     
-    
     if ( arrays->new_DrawArrays_possible ) {
        assert( ! arrays->new_DrawArrays_possible );
     }
@@ -529,7 +529,7 @@ static GLubyte *
 emit_DrawArrays_header_old( __GLXcontext * gc,
                            struct array_state_vector * arrays,
                            size_t * elements_per_request,
-                           size_t * total_requests,
+                           unsigned int * total_requests,
                            GLenum mode, GLsizei count )
 {
     size_t command_size;