summaryrefslogtreecommitdiff
path: root/platform/glfw
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-06-01 21:31:19 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-06-13 13:37:41 +0300
commit28eb2e635417c7fb8d746a9ed1d76774066098b3 (patch)
treeb4968e1f7ee53bdc37577a530d9487a05db1d72d /platform/glfw
parent672ba516f225b231077baa0e3f6ae0749ee9c295 (diff)
downloadqtlocation-mapboxgl-28eb2e635417c7fb8d746a9ed1d76774066098b3.tar.gz
[core] Added Backend::{assume,set}Viewport
Diffstat (limited to 'platform/glfw')
-rw-r--r--platform/glfw/glfw_view.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp
index c5d36a5555..4f878550b3 100644
--- a/platform/glfw/glfw_view.cpp
+++ b/platform/glfw/glfw_view.cpp
@@ -136,12 +136,12 @@ void GLFWView::setMap(mbgl::Map *map_) {
void GLFWView::updateAssumedState() {
assumeFramebufferBinding(0);
- assumeViewportSize(getFramebufferSize());
+ assumeViewport(0, 0, getFramebufferSize());
}
void GLFWView::bind() {
setFramebufferBinding(0);
- setViewportSize(getFramebufferSize());
+ setViewport(0, 0, getFramebufferSize());
}
void GLFWView::onKey(GLFWwindow *window, int key, int /*scancode*/, int action, int mods) {