summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-11-04 17:50:42 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-11-04 21:24:05 +0100
commit7b772611d576ed99b148208c21824bb089663599 (patch)
treec693f89323fd309ac63a982e2510464603b11e35 /src/mbgl/renderer
parent29c5c13aa2860a0e8c1ac9a826b08330708d3f29 (diff)
downloadqtlocation-mapboxgl-7b772611d576ed99b148208c21824bb089663599.tar.gz
[core] move pixel blitting to gl::Context
Diffstat (limited to 'src/mbgl/renderer')
-rw-r--r--src/mbgl/renderer/painter_debug.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mbgl/renderer/painter_debug.cpp b/src/mbgl/renderer/painter_debug.cpp
index dfb1581bab..c290f9b04b 100644
--- a/src/mbgl/renderer/painter_debug.cpp
+++ b/src/mbgl/renderer/painter_debug.cpp
@@ -8,7 +8,6 @@
#include <mbgl/shader/fill_uniforms.hpp>
#include <mbgl/util/string.hpp>
#include <mbgl/gl/debugging.hpp>
-#include <mbgl/gl/gl.hpp>
#include <mbgl/util/color.hpp>
namespace mbgl {
@@ -86,9 +85,7 @@ void Painter::renderClipMasks(PaintParameters&) {
context.pixelZoom = { 1, 1 };
context.rasterPos = { -1, -1, 0, 1 };
- context.pixelStoreUnpack = { 1 };
- MBGL_CHECK_ERROR(glDrawPixels(viewport.size.width, viewport.size.height, GL_LUMINANCE,
- GL_UNSIGNED_BYTE, image.data.get()));
+ context.drawPixels(image);
#endif // MBGL_USE_GLES2
}
@@ -111,9 +108,7 @@ void Painter::renderDepthBuffer(PaintParameters&) {
context.pixelZoom = { 1, 1 };
context.rasterPos = { -1, -1, 0, 1 };
- context.pixelStoreUnpack = { 1 };
- MBGL_CHECK_ERROR(glDrawPixels(viewport.size.width, viewport.size.height, GL_LUMINANCE,
- GL_UNSIGNED_BYTE, image.data.get()));
+ context.drawPixels(image);
#endif // MBGL_USE_GLES2
}
#endif // NDEBUG