mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +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()
|
GlContext::~GlContext()
|
||||||
{
|
{
|
||||||
// Deactivate the context before killing it
|
// Deactivate the context before killing it, unless we're inside Cleanup()
|
||||||
|
if (sharedContext)
|
||||||
SetActive(false);
|
SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user