[ wxwindows-Patches-1881968 ] Fixes implicit wxGLContext creation

SourceForge.net noreply at sourceforge.net
Sun Feb 3 07:00:16 PST 2008


Patches item #1881968, was opened at 2008-01-29 19:01
Message generated for change (Comment added) made by vadz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1881968&group_id=9863

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: GTK specific
Group: bug fix
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: crjjrc (crjjrc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fixes implicit wxGLContext creation

Initial Comment:
wxGLCanvas::GTKInitImplicitContext currently attempts to access member m_sharedContext which may not be initialized. If it's uninitialized but contains a garbage value, it then accesses m_sharedContextOf, which also may not be initialized, leading to various errors in GLX. This patch initializes both members to NULL for the implicit and non-shared wxGLContext constructor for wxGLCanvas, and initializes m_sharedContext to NULL for the shared wxGLContext constructor.

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

Comment By: Vadim Zeitlin (vadz)
Date: 2008-02-03 16:00

Message:
Logged In: YES 
user_id=71618
Originator: NO

Your patch was applied to svn trunk, thanks!

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1881968&group_id=9863




More information about the wx-dev mailing list