Browse Source

svga: call u_default_redefine_user_buffer() to fix failed assertion

This fixes a regression from a8cf4b6acf

The problem occured when two successive glDrawArrays calls accessed
subsequent elements in user-space arrays.  The user-space array
from the first call wasn't being grown to accomodate the second
draw call's elements.

Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
tags/mesa-8.0-rc1
Brian Paul 14 years ago
parent
commit
559a0cd1fc
1 changed files with 2 additions and 5 deletions
  1. 2
    5
      src/gallium/drivers/svga/svga_resource_buffer_upload.c

+ 2
- 5
src/gallium/drivers/svga/svga_resource_buffer_upload.c View File

@@ -658,9 +658,6 @@ svga_redefine_user_buffer(struct pipe_context *pipe,
assert(!sbuf->handle);
assert(!sbuf->hwbuf);

/*
* We always treat the contents of user-buffers as volatile,
* so no particular action needed here.
*/

/* use the default action of simply resizing the user buffer's size */
u_default_redefine_user_buffer(pipe, resource, offset, size);
}

Loading…
Cancel
Save