Typo in renderspu_wgl.c
[email protected] Tue, 24 May 2005 15:34:56 -0600
| Newsgroups | gmane.comp.graphics.chromium.devel |
|---|---|
| Message-ID | <[email protected]> |
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)! Thanks, Jon Marbach University of Colorado ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005