opengl32: work around a crash in glGetString

Massimo max at veneto.com
Thu Jun 26 08:16:05 CDT 2008


I don't understand.... IF the testcase returns NULL without a context 
(which should do anyways), both in linux and in windows, and what the 
patch does is tu ensure that, with no crash, what's bad with it ?

In AutoCad's installer it's just called WITHOUT a proper opengl context, 
in windows it's ok (I guess returning NULL), in wine it crashes; even if 
the simple testcase doesn't, it still returns NULL.
It's obvious that the crash may depend on previous gl calls, or on some 
previous and/or external bug, but it should still return NULL instead of 
crashing.

Max


Louis. Lenders ha scritto:
>  >As I mentioned before this requires a test case.
> As i tried to explain , in a simple test glGetString just return null, 
> it will not crash for me, like it does in the program.
> 
>  >I remember from the gl log that the program didn't create a WGL 
> context at all. It isn't allowed >to make opengl calls because of that
> 
> Allowed or not, the program does so, and on windows it installs just fine.
> 
>  >Perhaps without a context (if Windows allows it) you get some GDI 
> software renderer string >back or so.
> 
> It just returns (null)
> 
>  >Anyway at this point it sounds like a workaround instead of a fix for 
> the real bug.
> Well, the bug might be outside wine, so then it would be workaround, 
> yes, but still necessary IMO.
> 
> I cannot see how i can make a testcase based on the output of autocad here:
> http://bugs.winehq.org/attachment.cgi?id=14005 ,
> other  then i did already.  It's just an endless sequence of 
> 'wglGetIntegerv','wglFinish', and 'wglFlush', and then a crash in 
> glGetString. I cannot make a test program crash like that; the test 
> program just returns null, like i said before
> 
> A last stupid question for stefan: how can i make X load the mesa 
> driver, instead of my nvidia?
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> Not happy with your email address?
> Get the one you really want <http://uk.docs.yahoo.com/ymail/new.html> - 
> millions of new email addresses available now at Yahoo! 
> <http://uk.docs.yahoo.com/ymail/new.html>
> 
> 
> ------------------------------------------------------------------------
> 
> 




More information about the wine-devel mailing list