mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed recursive mutex lock in GlContext::Cleanup()
This commit is contained in:
parent
6e04a02b07
commit
ad79328a70
@ -182,7 +182,8 @@ GlContext* GlContext::New(const ContextSettings& settings, unsigned int width, u
|
||||
////////////////////////////////////////////////////////////
|
||||
GlContext::~GlContext()
|
||||
{
|
||||
// Deactivate the context before killing it
|
||||
// Deactivate the context before killing it, unless we're inside Cleanup()
|
||||
if (sharedContext)
|
||||
SetActive(false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user