Fixed potential endless recursion when creating the first GL context

This commit is contained in:
Laurent Gomila 2011-04-06 08:18:59 +02:00
parent f6bbbb6e6d
commit e7958987e9

View File

@ -129,9 +129,6 @@ void GlContext::EnsureContext()
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
GlContext* GlContext::New() GlContext* GlContext::New()
{ {
// Make sure that there's an active context (context creation may need extensions, and thus a valid context)
EnsureContext();
return new ContextType(sharedContext); return new ContextType(sharedContext);
} }