[Bug 27701] Panta Rhei demoscene demo crashes on startup (custom loader can't cope with opengl32 -> gdi32 forwarded imports)

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Dec 13 14:40:09 CST 2011


http://bugs.winehq.org/show_bug.cgi?id=27701

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |focht at gmx.net
          Component|-unknown                    |opengl
            Summary|Panta Rhei demoscene demo   |Panta Rhei demoscene demo
                   |crashes on startup          |crashes on startup (custom
                   |                            |loader can't cope with
                   |                            |opengl32 -> gdi32 forwarded
                   |                            |imports)

--- Comment #3 from Anastasius Focht <focht at gmx.net> 2011-12-13 14:40:09 CST ---
Hello,

confirming, still present.
This problem is essentially the same as bug 25423

I dumped the problematic part from the loaders "IAT" from memory:

--- snip ---
...
0043055C   201260BA  ; opengl32.glViewport
00430560   2016C547  ; ASCII "gdi32.ChoosePixelFormat"
00430564   2016C55F  ; ASCII "gdi32.wglCopyContext"
00430568   2012624C  ; opengl32.wglCreateContext
0043056C   20126276  ; opengl32.wglCreateLayerContext
00430570   2016C574  ; ASCII "gdi32.wglDeleteContext"
00430574   20126351  ; opengl32.wglDescribeLayerPlane
00430578   2016C58B  ; ASCII "gdi32.DescribePixelFormat"
0043057C   2016C5A5  ; ASCII "gdi32.wglGetCurrentContext"
00430580   2016C5C0  ; ASCII "gdi32.wglGetCurrentDC"
00430584   200BECE0  ; opengl32.wglGetDefaultProcAddress
00430588   201263DC  ; opengl32.wglGetLayerPaletteEntries
0043058C   2016C5D6  ; ASCII "gdi32.GetPixelFormat"
00430590   201266E1  ; opengl32.wglGetProcAddress
00430594   2012621B  ; opengl32.wglMakeCurrent
00430598   20126B4B  ; opengl32.wglRealizeLayerPalette
0043059C   20126BB3  ; opengl32.wglSetLayerPaletteEntries
004305A0   2016C5EB  ; ASCII "gdi32.SetPixelFormat"
004305A4   2016C600  ; ASCII "gdi32.wglShareLists"
004305A8   20128343  ; opengl32.wglSwapBuffers
004305AC   20126C1B  ; opengl32.wglSwapLayerBuffers
004305B0   2016C614  ; ASCII "gdi32.wglUseFontBitmapsA"
004305B4   2016C62D  ; ASCII "gdi32.wglUseFontBitmapsW"
004305B8   00000000 
--- snip ---

You need wrappers for the following functions to get the demo to work:

--- snip ---
opengl32.ChoosePixelFormat
opengl32.wglCopyContext
opengl32.wglDeleteContext
opengl32.DescribePixelFormat
opengl32.wglGetCurrentContext
opengl32.wglGetCurrentDC
opengl32.GetPixelFormat
opengl32.SetPixelFormat
opengl32.wglShareLists
opengl32.wglUseFontBitmapsA
opengl32.wglUseFontBitmapsW
--- snip ---

Bug 25423 commit template:

http://source.winehq.org/git/wine.git/commitdiff/8a2e38cc45aef0d064e3af53b347d7f84aec4ea7

$ wine --version
wine-1.3.34-299-g2a06bea

Regards

-- 
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