diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-06-17 05:52:24 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-06-17 05:52:24 -0700 |
commit | 68c621b2a6f02642952923e1cb30b0d03c770df4 (patch) | |
tree | c9be19c67cc6aebf5b498c26523df4741c9b7a67 /common | |
parent | 4899d72da63c5ebfb55d80b981c563aa10081e57 (diff) | |
download | qtlocation-mapboxgl-68c621b2a6f02642952923e1cb30b0d03c770df4.tar.gz |
load glDiscardFramebufferEXT with a library function if needed
Diffstat (limited to 'common')
-rw-r--r-- | common/glfw_view.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/glfw_view.cpp b/common/glfw_view.cpp index 43557ee4dc..f33c826671 100644 --- a/common/glfw_view.cpp +++ b/common/glfw_view.cpp @@ -1,6 +1,10 @@ #include "glfw_view.hpp" -GLFWView::GLFWView(bool fullscreen) : fullscreen(fullscreen) {} +GLFWView::GLFWView(bool fullscreen) : fullscreen(fullscreen) { +#ifdef NVIDIA + glDiscardFramebufferEXT = (PFNGLDISCARDFRAMEBUFFEREXTPROC)glfwGetProcAddress("glDiscardFramebufferEXT"); +#endif +} GLFWView::~GLFWView() { glfwTerminate(); } |