summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-06-17 05:52:24 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-06-17 05:52:24 -0700
commit68c621b2a6f02642952923e1cb30b0d03c770df4 (patch)
treec9be19c67cc6aebf5b498c26523df4741c9b7a67 /common
parent4899d72da63c5ebfb55d80b981c563aa10081e57 (diff)
downloadqtlocation-mapboxgl-68c621b2a6f02642952923e1cb30b0d03c770df4.tar.gz
load glDiscardFramebufferEXT with a library function if needed
Diffstat (limited to 'common')
-rw-r--r--common/glfw_view.cpp6
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(); }