Re: Typo in renderspu_wgl.c
Brian Paul <[email protected]> Wed, 25 May 2005 12:14:56 -0600
| Newsgroups | gmane.comp.graphics.chromium.devel |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > Hi all, > > I think I've spotted a bug in renderspu_wgl.c near line 252 and line 270. > > The bad code: > render_spu.ws.wglDescribePixelFormat( hdc, pixelformat, sizeof(ppfd), ppfd ); > > Better code: > render_spu.ws.wglDescribePixelFormat( hdc, pixelformat, sizeof(*ppfd), ppfd ); > > The error near line 270 is similar... > > DescribePixelFormat expects the size of the pixelformat structure (~40 bytes), > not the size of the pointer (4 bytes)! I've checked in the change. Thanks. -Brian ------------------------------------------------------- SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click