[Bug 14640] New: OpenGL example from Lazarus fails at ChoosePixelFormat
http://bugs.winehq.org/show_bug.cgi?id=14640 Summary: OpenGL example from Lazarus fails at ChoosePixelFormat Product: Wine Version: 1.1.0 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: major Priority: P2 Component: winex11.drv AssignedTo: wine-bugs(a)winehq.org ReportedBy: bugzilla(a)tut.by Created an attachment (id=15048) --> (http://bugs.winehq.org/attachment.cgi?id=15048) log of demo being run under WINE with debug options Just compiled an example of OpenGL usage for Lazarus (http://lazarus.freepascal.org/). While compiled for GNU/Linux+GTK+ target it works fine, Win32 target works on winxp but fails on WINE. The sources of the main program can be found here: http://svn.freepascal.org/svn/lazarus/trunk/examples/openglcontrol/ The sources of component's part which itself initializes OpenGL is here: http://svn.freepascal.org/svn/lazarus/trunk/components/opengl/glwin32wglcont... -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #1 from Andrew O. Shadoura (I DO NOT USE COMPIZ) <bugzilla(a)tut.by> 2008-07-26 04:15:59 --- Created an attachment (id=15049) --> (http://bugs.winehq.org/attachment.cgi?id=15049) binary of the demo -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 Vitaliy Margolen <vitaliy(a)kievinfo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal Component|winex11.drv |-unknown --- Comment #2 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2008-07-26 11:32:43 --- What distro, video card, driver version? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 Andrew O. Shadoura (I DO NOT USE COMPIZ) <bugzilla(a)tut.by> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15048|application/octet-stream |text/plain mime type| | --- Comment #3 from Andrew O. Shadoura (I DO NOT USE COMPIZ) <bugzilla(a)tut.by> 2008-07-26 15:35:36 --- (From update of attachment 15048) I use debian lenny, videocard and driver version are mentioned in the log -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #4 from Rico <kgbricola(a)web.de> 2008-07-27 08:03:17 --- Created an attachment (id=15091) --> (http://bugs.winehq.org/attachment.cgi?id=15091) workaround for running 16 bit colour apps on 32 bit desktop This workaround makes wine to be not so strict with the iPixelType. Could you give it a try? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #5 from Rico <kgbricola(a)web.de> 2008-07-27 08:06:47 --- The attachment description was wrong: "workaround for running 16 bit colour apps on 32 bit desktop" should be something like this: "workaround to be not so strict with iPixelType" -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #6 from Andrew O. Shadoura (I DO NOT USE COMPIZ) <bugzilla(a)tut.by> 2008-07-29 06:50:14 --- (In reply to comment #4)
Created an attachment (id=15091) --> (http://bugs.winehq.org/attachment.cgi?id=15091) [details]
This workaround makes wine to be not so strict with the iPixelType. Could you give it a try?
Yes, this works. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #7 from Rico <kgbricola(a)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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #8 from Rico <kgbricola(a)web.de> 2008-08-03 05:49:56 --- See http://msdn.microsoft.com/en-us/library/ms537569(VS.85).aspx for more details.
if RGBA then dwFlags:=dwFlags or PFD_TYPE_RGBA;
PFD_TYPE_RGBA isn't a valid flag. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #9 from Rico <kgbricola(a)web.de> 2008-08-03 07:37:43 --- Created an attachment (id=15234) --> (http://bugs.winehq.org/attachment.cgi?id=15234) test for iPixelType = (0-254) This test never fails on windows. We got always a good return value. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #10 from Rico <kgbricola(a)web.de> 2008-08-03 09:10:22 --- Created an attachment (id=15236) --> (http://bugs.winehq.org/attachment.cgi?id=15236) patch to pass the tests This patch makes the test above happy. So that only one failing case (PFD_TYPE_COLORINDEX) is there. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #11 from Andrew O. Shadoura (I DO NOT USE COMPIZ) <bugzilla(a)tut.by> 2008-08-03 12:16:28 --- (In reply to comment #7)
Do you think that's the right behaviour? (from your code)
Note: this code is not mine. I don't use windows, I just use this unit and WINE to ensure my program will work for windows users.
iPixelType:=24; // color depth -> this isn't the color! This has to be iPixelType:=PFD_TYPE_RGBA, the color is cColorBits:=24;
I will file a bug at Lazarus' bug tracker, so I hope this will be fixed. Thank you for investigation :-) -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #12 from Andrew O. Shadoura (I DO NOT USE COMPIZ) <bugzilla(a)tut.by> 2009-01-19 03:51:00 --- (In reply to comment #10)
Created an attachment (id=15236) --> (http://bugs.winehq.org/attachment.cgi?id=15236) [details] patch to pass the tests
This patch makes the test above happy. So that only one failing case (PFD_TYPE_COLORINDEX) is there.
Can this patch be committed into Wine? It could fix the problem from Wine's side too, as there can be many programs initializing GL in a such wrong way, and windows allows this to run. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #13 from Rico <kgbricola(a)web.de> 2009-01-19 12:51:31 --- I'll submit it. The only problem is the testcase. It looks like the linux opengl drivers didn't offer PFD_TYPE_COLORINDEX. So there is a failing test in my example. Probably I'll change the test, so that it will not check for PFD_TYPE_COLORINDEX. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, testcase -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #14 from Roderick Colenbrander <thunderbird2k(a)gmx.net> 2009-01-19 14:13:44 --- The problem is not limited to just this option but to most of the pfd options. I don't think windows is rewriting the format to RGBA but it likely just ignores this flag altogether. There are several problems. First of all the behavior of ChoosePixelFormat is not well defined and second parts of it are implemented in the icd of a vendor :( Because the behavior isn't well defined we don't know what microsoft is doing on the pixel format table. We have had similar issues with other options. In order to fix this bug (and all the others) we need to know exactly what Microsoft is doing :( Else I fear that we only make the issue a lot worse as right now our ChoosePixelFormat seems to work for most apps (it has been in a much worse state). Roderick -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 Roderick Colenbrander <thunderbird2k(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thunderbird2k(a)gmail.com Component|-unknown |opengl --- Comment #15 from Roderick Colenbrander <thunderbird2k(a)gmail.com> 2009-06-10 15:56:06 --- Marking this as an opengl bug. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 Louis Lenders <xerox_xerox2000(a)yahoo.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW CC| |xerox_xerox2000(a)yahoo.co.uk Ever Confirmed|0 |1 --- Comment #16 from Louis Lenders <xerox_xerox2000(a)yahoo.co.uk> 2009-08-26 16:22:34 --- confirmed -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 Benjamin Debski <benjamin.debski(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |benjamin.debski(a)gmail.com --- Comment #17 from Benjamin Debski <benjamin.debski(a)gmail.com> 2011-01-07 21:34:45 CST --- Present in Wine 1.3.10 -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 joaopa <jeremielapuree(a)yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree(a)yahoo.fr --- Comment #18 from joaopa <jeremielapuree(a)yahoo.fr> 2011-08-06 05:01:29 CDT --- still a bug in current wine? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 Que Quotion <the_q123(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |the_q123(a)hotmail.com --- Comment #19 from Que Quotion <the_q123(a)hotmail.com> 2012-02-15 23:50:49 CST --- This is STILL happening in wine1.4. Test case: ePSXe The program will run, and the main window works, but as soon as you start a game (which opens an OpenGL window): ChoosePixelFormat failed -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair(a)hotmail.com -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx(a)gmail.com --- Comment #20 from Bruno Jesus <00cpxxx(a)gmail.com> 2012-11-04 21:01:06 CST --- The demo from comment 1 still does not work and the code changed so much that the patch from comment 10 is not able to be applied anymore (wine 1.5.16). -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 Rico <kgbricola(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15091|0 |1 is obsolete| | Attachment #15236|0 |1 is obsolete| | --- Comment #21 from Rico <kgbricola(a)web.de> 2012-11-05 05:51:12 CST --- Created attachment 42398 --> http://bugs.winehq.org/attachment.cgi?id=42398 rebased patch (15236: patch to pass the tests) The executable from #1 uses invalid values which are hard to find the correct solution for (see #14). Though the source for this is fixed, so a fresh build executable will run without trouble. Attached is a rebased patch, which still is a hack. For ePSXe, please attach a +wgl log. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #22 from Bruno Jesus <00cpxxx(a)gmail.com> 2012-11-05 05:57:02 CST --- Thank you for the patch and sorry for testing the wrong app. I don't have any issues with epsxe so I can't help there. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 wine(a)ptx.dk changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wine(a)ptx.dk --- Comment #23 from wine(a)ptx.dk --- I'm getting this error in wine-1.7.29 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian(a)fds-team.de -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 winetest(a)luukku.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest(a)luukku.com --- Comment #24 from winetest(a)luukku.com --- The hack still applies cleanly just few offsets against wine 1.9.23 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 alexchandel(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alexchandel(a)gmail.com --- Comment #25 from alexchandel(a)gmail.com --- (In reply to winetest from comment #24)
The hack still applies cleanly just few offsets against wine 1.9.23
Could you send this patch to the wine-patches list? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |orbisvicis(a)gmail.com --- Comment #26 from Anastasius Focht <focht(a)gmx.net> --- *** Bug 37188 has been marked as a duplicate of this bug. *** -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #27 from Anastasius Focht <focht(a)gmx.net> --- *** Bug 40267 has been marked as a duplicate of this bug. *** -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|OpenGL example from Lazarus |Multiple OpenGL |fails at ChoosePixelFormat |applications and games fail | |at | |ChoosePixelFormat/SetPixelF | |ormat (Lazarus, | |Counterclockwise, USI T3 | |emulator) URL| |https://bugs.winehq.org/att | |achment.cgi?id=15049 Hardware|Other |x86 OS|other |Linux CC| |focht(a)gmx.net --- Comment #28 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, confirming still present. I've merged a few potential dupes here since the same patch helps there too. Due to the catch-all nature of the patch there is a risk they are still different problems on implementation details but no one seems to care to dig deeper. bug 37188 - Counterclockwise (CCW) 1.1 - http://www.16x16.org/download/ccw/ccw_1_1.zip $ wine --version wine-3.18 Regards -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 zzzzzyzz(a)hacari.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zzzzzyzz(a)hacari.org -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #29 from joaopa <jeremielapuree(a)yahoo.fr> --- Created attachment 68237 --> https://bugs.winehq.org/attachment.cgi?id=68237 binary +pictures to reproduce Looks like the bug is fixed in wine-5.17. Even ccw works. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 --- Comment #30 from joaopa <jeremielapuree(a)yahoo.fr> --- Created attachment 68238 --> https://bugs.winehq.org/attachment.cgi?id=68238 screenshot showing the bug is fixed. Can an administrator close this bug as FIXED? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 joaopa <jeremielapuree(a)yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #68237|0 |1 is obsolete| | --- Comment #31 from joaopa <jeremielapuree(a)yahoo.fr> --- Created attachment 68239 --> https://bugs.winehq.org/attachment.cgi?id=68239 binary+pictures to reproduce the bug Change format pictures from png to bmp -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |ee12fb0e3241a1458ea81afaf8f | |bf822e53f0902 --- Comment #32 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, confirming, it's fixed. It was fixed by commit https://source.winehq.org/git/wine.git/commitdiff/ee12fb0e3241a1458ea81afaf8... ("opengl32: Treat invalid pixel types as PFD_TYPE_RGBA in wglChoosePixelFormat."), part of Wine 5.7 release. Thanks Michael Also referenced in bug 43638 ("Multiple 4k demoscene OpenGL demos crash on startup with 'No active WGL context found' (Yermom, 'End of time' by Alcatraz and Altair)") Snapshot via Internet Archive: https://web.archive.org/web/20120304010012/http://www.16x16.org/download/ccw... $ sha1sum ccw_1_1.zip cd9f753e2d4a98a491bbbc201530e2861bf377f8 ccw_1_1.zip $ du -sh ccw_1_1.zip 7.1M ccw_1_1.zip $ wine --version wine-5.19-167-g0c249e6125f Regards -- 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.
https://bugs.winehq.org/show_bug.cgi?id=14640 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #33 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 5.20. -- 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.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla