From: <ma...@co...> - 2005-05-24 21:35:01
|
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 |