diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-02-27 18:33:16 +0100 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-03-23 14:50:11 -0700 |
commit | e67abfbe67d7c08e90fdbd8727c4e9ed17dfa1ed (patch) | |
tree | 8bf1a6ae813afdfe44bd8d6210337141acd53bae /platform/glfw | |
parent | 234384ece9c70f2a803ed2b1d1eb55b248ec43d1 (diff) | |
download | qtlocation-mapboxgl-e67abfbe67d7c08e90fdbd8727c4e9ed17dfa1ed.tar.gz |
[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.
Diffstat (limited to 'platform/glfw')
-rw-r--r-- | platform/glfw/glfw_view.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |