From: Brian P. <bri...@tu...> - 2005-05-25 18:12:39
|
ma...@co... 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 |