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.
https://bugs.winehq.org/show_bug.cgi?id=40902
--- Comment #1 from Carlo Bramini carlo.bramix@libero.it --- Created attachment 54996 --> https://bugs.winehq.org/attachment.cgi?id=54996 Run on Windows
https://bugs.winehq.org/show_bug.cgi?id=40902
--- Comment #2 from Carlo Bramini carlo.bramix@libero.it --- Created attachment 54997 --> https://bugs.winehq.org/attachment.cgi?id=54997 Run on WINE
https://bugs.winehq.org/show_bug.cgi?id=40902
--- Comment #3 from Carlo Bramini carlo.bramix@libero.it --- Created attachment 54998 --> https://bugs.winehq.org/attachment.cgi?id=54998 Test program
I had converted that screensaver to an EXE in order to make simpler my debugging. You can recompile it with MINGW by writing:
$ i686-w64-mingw32-gcc 3dtext.c -o 3dtext.exe -s -O2 -mwindows -lopengl32 -lglu32
https://bugs.winehq.org/show_bug.cgi?id=40902
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com --- Confirming in wine 1.9.13-git. Wine displays flat text while XP displays 3D (extruded?) text.
https://bugs.winehq.org/show_bug.cgi?id=40902
--- Comment #5 from Henri Verbeet hverbeet@gmail.com --- The issue is probably that the "extrusion" parameter to wglUseFontOutlines() is ignored.
https://bugs.winehq.org/show_bug.cgi?id=40902
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #6 from Fabian Maurer dark.shadow4@web.de --- Is this still an issue?