https://bugs.winehq.org/show_bug.cgi?id=40902
Bug ID: 40902 Summary: Simple 3D Text screen saver does not show expected graphics Product: Wine Version: 1.9.13 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: opengl Assignee: wine-bugs@winehq.org Reporter: carlo.bramix@libero.it Distribution: ---
I tried to run some screensavers with WINE and I have seen an unexpected result with ReactOS 3D Text screensaver.
This screensaver should show a text in a 3D format and rotating over the axis, see the attached screenshot "Run on Windows.png". WINE is able to execute it, but it shows a 2D text instead, see the attached screenshot "Run on WINE.png".
I tried to debug a bit the source code of the wglUseFontOutlines() function and in my opinion there is at least a brutal memory leak here. If you look into:
https://github.com/wine-mirror/wine/blob/master/dlls/opengl32/wgl.c#L1638
there is an HeapAlloc() for allocating the vertices, but later it seems to me that this pointer is lost because it is changed in some places, see for example:
https://github.com/wine-mirror/wine/blob/master/dlls/opengl32/wgl.c#L1662
so the next HeapFree() is also directed to a wrong address. I did a quick fix but, as I expected, this is not the cause of the original problem, there is something else which causes the text to not be 3D.