[Bug 10191] SecondLife v1.18.3.5 crashes on startup

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Nov 8 06:48:21 CST 2007


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


Louis Lenders <xerox_xerox2000 at yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xerox_xerox2000 at yahoo.co.uk
          Component|wine-misc                   |wine-opengl




--- Comment #5 from Louis Lenders <xerox_xerox2000 at yahoo.co.uk>  2007-11-08 06:48:19 ---
Hi, for me this app crashes as well, in the way that it pops up a messagebox
that an error has been encountered. From a debug log it showed :
0009:Call
opengl32.glTexSubImage2D(00000de1,00000000,00000000,00000000,00000320,00000257,000080e1,00001401,7f6a0038)
ret=009
21988
0009:trace:seh:raise_exception code=c0000005 flags=0 addr=0x601b8bcc

With a very stupid hack like below i was able to work around the crash and get
into the login window, but of course the textures in that window looked screwed
up because of hack. 
It looks like glTexSubImage2D is not very happy with the stuff SecondLife
passes in, but i don't know much about opengl, so cannot really help further.
Anyone an idea?






diff --git a/dlls/opengl32/opengl_norm.c b/dlls/opengl32/opengl_norm.c
index fcd4be4..f801dbc 100644
--- a/dlls/opengl32/opengl_norm.c
+++ b/dlls/opengl32/opengl_norm.c
@@ -3427,7 +3427,7 @@ void WINAPI wine_glTexSubImage1D( GLenum target, GLint
level, GLint xoffset, GLs
 void WINAPI wine_glTexSubImage2D( GLenum target, GLint level, GLint xoffset,
GLint yoffset, GLsizei width, GLsizei height,
   TRACE("(%d, %d, %d, %d, %d, %d, %d, %d, %p)\n", target, level, xoffset,
yoffset, width, height, format, type, pixels );
   ENTER_GL();
-  glTexSubImage2D( target, level, xoffset, yoffset, width, height, format,
type, pixels );
+  glTexSubImage2D( target, level, xoffset, yoffset, width/2, height/2, format,
type, pixels );
   LEAVE_GL();
 }



-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list