summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/painter.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-12-03 17:46:28 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-12-10 14:16:11 -0800
commit93c000dd18f5896b6d0c5b3f1670c999489c2f12 (patch)
treecfc61766f13137b6be5f35fb82e657eed80bcddd /src/mbgl/renderer/painter.cpp
parentbd56c8634bf0683d9ee45e95a07694ed43f3ac05 (diff)
downloadqtlocation-mapboxgl-93c000dd18f5896b6d0c5b3f1670c999489c2f12.tar.gz
[core] viewport is handled by embedding applications
Diffstat (limited to 'src/mbgl/renderer/painter.cpp')
-rw-r--r--src/mbgl/renderer/painter.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mbgl/renderer/painter.cpp b/src/mbgl/renderer/painter.cpp
index fb74d5b8e6..cab9d49212 100644
--- a/src/mbgl/renderer/painter.cpp
+++ b/src/mbgl/renderer/painter.cpp
@@ -91,8 +91,6 @@ void Painter::render(const Style& style, const FrameData& frame_, SpriteAtlas& a
const std::set<Source*>& sources = renderData.sources;
const Color& background = renderData.backgroundColor;
- config.viewport = { 0, 0, frame.framebufferSize[0], frame.framebufferSize[1] };
-
// Update the default matrices to the current viewport dimensions.
state.getProjMatrix(projMatrix);
@@ -235,7 +233,6 @@ void Painter::renderPass(RenderPass pass_,
config.colorMask = { GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE };
config.stencilMask = 0x0;
- config.viewport = { 0, 0, frame.framebufferSize[0], frame.framebufferSize[1] };
if (layer.is<BackgroundLayer>()) {
MBGL_DEBUG_GROUP("background");