[GEM-dev] [ pd-gem-Bugs-2842959 ] [print( message to [gemwin] may crash

SourceForge.net noreply at sourceforge.net
Tue Sep 8 12:01:44 CEST 2009


Bugs item #2842959, was opened at 2009-08-23 10:06
Message generated for change (Comment added) made by zmoelnig
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=507079&aid=2842959&group_id=64325

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: IOhannes m zmlnig (zmoelnig)
Assigned to: Nobody/Anonymous (nobody)
Summary: [print(  message to [gemwin] may crash

Initial Comment:
sending a [print( message to [gemwin] will usually display a lot of information about the openGL system (like driver-version)

however, if no openGL-context has been established yet (e.g. because no one [create(d a window yet), this might crash.

the reason is that glGetString() crashes.
the function pointer is NOT set to NULL.


this happened with current svn on debian, while testing indirect rendering on my eee (using mesa on a i945GME)

proposed fix: use a static variable that indicates whether the context has been initialized properly and don't call glGetString() unless this has happened...


----------------------------------------------------------------------

>Comment By: IOhannes m zmlnig (zmoelnig)
Date: 2009-09-08 12:01

Message:
fixed with revision 2870

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=507079&aid=2842959&group_id=64325




More information about the GEM-dev mailing list