[Bug 14640] OpenGL example from Lazarus fails at ChoosePixelFormat
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Aug 3 05:45:19 CDT 2008
http://bugs.winehq.org/show_bug.cgi?id=14640
--- Comment #7 from Rico <kgbricola at 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.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list