http://bugs.winehq.org/show_bug.cgi?id=14640
--- Comment #7 from Rico kgbricola@web.de 2008-08-03 05:45:18 --- Do you think that's the right behaviour? (from your code) // get pixelformat FillChar(pfd,SizeOf(pfd),0); with pfd do begin nSize:=sizeOf(pfd); nVersion:=1; dwFlags:=PFD_DRAW_TO_WINDOW or PFD_SUPPORT_OPENGL; if DoubleBuffered then dwFlags:=dwFlags or PFD_DOUBLEBUFFER; if RGBA then dwFlags:=dwFlags or PFD_TYPE_RGBA; iPixelType:=24; // color depth -> this isn't the color! This has to be iPixelType:=PFD_TYPE_RGBA, the color is cColorBits:=24; cDepthBits:=16; // Z-Buffer iLayerType:=PFD_MAIN_PLANE; end;
But the question is, why does this work on windows (doesn't it?) and not on wine! Probably there are some test cases needed.