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 /cmake | |
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 'cmake')
-rw-r--r-- | cmake/core-files.cmake | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cmake/core-files.cmake b/cmake/core-files.cmake index e98f999116..8fc71bf280 100644 --- a/cmake/core-files.cmake +++ b/cmake/core-files.cmake @@ -58,10 +58,11 @@ set(MBGL_CORE_FILES src/mbgl/gl/context.hpp src/mbgl/gl/debugging.cpp src/mbgl/gl/debugging.hpp + src/mbgl/gl/debugging_extension.cpp + src/mbgl/gl/debugging_extension.hpp src/mbgl/gl/depth_mode.cpp src/mbgl/gl/depth_mode.hpp src/mbgl/gl/draw_mode.hpp - src/mbgl/gl/extension.cpp src/mbgl/gl/extension.hpp src/mbgl/gl/features.hpp src/mbgl/gl/framebuffer.hpp @@ -71,8 +72,7 @@ set(MBGL_CORE_FILES src/mbgl/gl/object.hpp src/mbgl/gl/primitives.hpp src/mbgl/gl/program.hpp - src/mbgl/gl/program_binary.cpp - src/mbgl/gl/program_binary.hpp + src/mbgl/gl/program_binary_extension.hpp src/mbgl/gl/renderbuffer.hpp src/mbgl/gl/segment.cpp src/mbgl/gl/segment.hpp @@ -85,8 +85,7 @@ set(MBGL_CORE_FILES src/mbgl/gl/uniform.hpp src/mbgl/gl/value.cpp src/mbgl/gl/value.hpp - src/mbgl/gl/vertex_array.cpp - src/mbgl/gl/vertex_array.hpp + src/mbgl/gl/vertex_array_extension.hpp src/mbgl/gl/vertex_buffer.hpp # layout |