Re: [PATCH] ddraw: Grow indexbuffer as needed (now with overflow check)

2010-06-24 Thread Stefan Dösinger
Am 24.06.2010 um 11:30 schrieb Mikko Rasa: > On 24.06.2010 12:07, Stefan Dösinger wrote: >> >> Am 23.06.2010 um 21:57 schrieb Mikko Rasa: >>> +if(!size) >>> +{ >>> +ERR("UINT overflow while trying to grow indexbuffer to >>> hold %u indices\n", IndexCount)

Re: [PATCH] ddraw: Grow indexbuffer as needed (now with overflow check)

2010-06-24 Thread Stefan Dösinger
Am 23.06.2010 um 21:57 schrieb Mikko Rasa: > +if(!size) > +{ > +ERR("UINT overflow while trying to grow indexbuffer to hold > %u indices\n", IndexCount); > +return D3DERR_TOOMANYPRIMITIVES; > +} > +} You have to release t

Re: [PATCH] ddraw: Grow indexbuffer as needed

2010-06-22 Thread Henri Verbeet
On 22 June 2010 09:15, Mikko Rasa wrote: > --- >  dlls/ddraw/device.c |   27 ++- >  1 files changed, 26 insertions(+), 1 deletions(-) > This looks mostly ok, except for two things: - We'll probably want to grow the buffer by doubling the size until it's large enough (but