From e7958987e9b51801658d710c6ec402394cde8d3e Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Wed, 6 Apr 2011 08:18:59 +0200 Subject: [PATCH] Fixed potential endless recursion when creating the first GL context --- src/SFML/Window/GlContext.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/SFML/Window/GlContext.cpp b/src/SFML/Window/GlContext.cpp index 18eab4f8..350000d7 100644 --- a/src/SFML/Window/GlContext.cpp +++ b/src/SFML/Window/GlContext.cpp @@ -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); }