From e67abfbe67d7c08e90fdbd8727c4e9ed17dfa1ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Mon, 27 Feb 2017 18:33:16 +0100 Subject: [core] Refactor OpenGL extension loading mechanism Previously, we initialized global variables that held pointers to the extension functions. While this seemed to work, the spec doesn't guarantee that the function pointers are identical for different OpenGL contexts. Therefore, we are now making them a member variable of the Context object. --- platform/glfw/glfw_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform') diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp index 812b0e32af..82f075fd6f 100644 --- a/platform/glfw/glfw_view.cpp +++ b/platform/glfw/glfw_view.cpp @@ -459,7 +459,7 @@ void GLFWView::run() { if (dirty) { const double started = glfwGetTime(); - glfwMakeContextCurrent(window); + activate(); mbgl::BackendScope scope { *this, mbgl::BackendScope::ScopeType::Implicit }; updateViewBinding(); -- cgit v1.2.1