On Tue, Nov 26, 2013 at 11:34 AM, Siavash Eliasi <siavashser...@gmail.com>wrote:

> Now I understand why _mesa_realloc is not appropriate to use here. From
> spec:
>
>  glBufferData creates a new data store for the buffer object currently
>> bound to target. Any pre-existing data store is deleted. The new data store
>> is created with the specified size in bytes and usage.
>> If data is NULL, a data store of the specified size is still created, but
>> its contents remain uninitialized and thus undefined.
>>
>
>
> Best regards,
> Siavash Eliasi.
>
>
> On 11/26/2013 09:34 AM, Siavash Eliasi wrote:
>
>> Yes I think you are right, I guess *_mesa_align_realloc* is the correct
>> function which should be used here.
>>
>> What do you think Ian?
>>
>>
>> Best regards,
>> Siavash Eliasi.
>>
>
Realloc was a poor choice in the first place.  It would needlessly copy
data from the old buffer to the new one.

-Brian
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to