diff --git a/src/SFML/Window/GlContext.cpp b/src/SFML/Window/GlContext.cpp index 8b7af3ab..9fdf0264 100644 --- a/src/SFML/Window/GlContext.cpp +++ b/src/SFML/Window/GlContext.cpp @@ -60,13 +60,13 @@ namespace { // This per-thread variable holds the current context for each thread - sf::ThreadLocalPtr currentContext = NULL; + sf::ThreadLocalPtr currentContext(NULL); // The hidden, inactive context that will be shared with all other contexts ContextType* sharedContext = NULL; // Internal contexts - sf::ThreadLocalPtr internalContext = NULL; + sf::ThreadLocalPtr internalContext(NULL); std::vector internalContexts; sf::Mutex internalContextsMutex;