mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed potential endless recursion when creating the first GL context
This commit is contained in:
parent
f6bbbb6e6d
commit
e7958987e9
@ -129,9 +129,6 @@ void GlContext::EnsureContext()
|
||||
////////////////////////////////////////////////////////////
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user