Skip to content

Commit

Permalink
Fixed recursive mutex lock in GlContext::Cleanup()
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGomila committed Apr 15, 2011
1 parent 6e04a02 commit ad79328
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SFML/Window/GlContext.cpp
Expand Up @@ -182,8 +182,9 @@ GlContext* GlContext::New(const ContextSettings& settings, unsigned int width, u
////////////////////////////////////////////////////////////
GlContext::~GlContext()
{
// Deactivate the context before killing it
SetActive(false);
// Deactivate the context before killing it, unless we're inside Cleanup()
if (sharedContext)
SetActive(false);
}


Expand Down

0 comments on commit ad79328

Please sign in to comment.