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,8 +182,9 @@ 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()
|
||||||
SetActive(false);
|
if (sharedContext)
|
||||||
|
SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user