Fixed recursive mutex lock in GlContext::Cleanup()

This commit is contained in:
Laurent Gomila 2011-04-15 18:14:35 +02:00
parent 6e04a02b07
commit ad79328a70

View File

@ -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);
}