summaryrefslogtreecommitdiff
path: root/src/mbgl/gl
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-04-05 11:00:56 +0200
committerKonstantin Käfer <mail@kkaefer.com>2019-04-05 11:49:17 +0200
commit1d58850d0c5b467132af92eb0604b903b9199e8d (patch)
treed626f48a91224209f9fcd222a085686264627a89 /src/mbgl/gl
parent5cc3d7a73328d6df9c16d27d6aca5b49ba085351 (diff)
downloadqtlocation-mapboxgl-1d58850d0c5b467132af92eb0604b903b9199e8d.tar.gz
[core] remove Renderer::flush
Diffstat (limited to 'src/mbgl/gl')
-rw-r--r--src/mbgl/gl/context.cpp4
-rw-r--r--src/mbgl/gl/context.hpp5
2 files changed, 0 insertions, 9 deletions
diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp
index 458bf9b649..29675b0446 100644
--- a/src/mbgl/gl/context.cpp
+++ b/src/mbgl/gl/context.cpp
@@ -811,9 +811,5 @@ void Context::performCleanup() {
}
}
-void Context::flush() {
- MBGL_CHECK_ERROR(glFinish());
-}
-
} // namespace gl
} // namespace mbgl
diff --git a/src/mbgl/gl/context.hpp b/src/mbgl/gl/context.hpp
index 0fad92f3df..062cbd7b8a 100644
--- a/src/mbgl/gl/context.hpp
+++ b/src/mbgl/gl/context.hpp
@@ -107,11 +107,6 @@ public:
// Only call this while the OpenGL context is exclusive to this thread.
void reset();
- // Flush pending graphics commands. Will block until the pipeline
- // is empty. Should be used only with a very good reason because
- // it will have a performance impact.
- void flush();
-
bool empty() const {
return pooledTextures.empty()
&& abandonedPrograms.empty()