diff options
author | Dane Springmeyer <springmeyer@users.noreply.github.com> | 2019-11-12 06:48:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-12 06:48:37 -0800 |
commit | c1b2e8c9a013677ee795321ba74427551e6ecf2e (patch) | |
tree | 7ad2cb63163cc8c2c1bad44c98cfcf1f046782ba | |
parent | 49456e3fc15e173bc61dbac77d5096abf3650056 (diff) | |
download | qtlocation-mapboxgl-c1b2e8c9a013677ee795321ba74427551e6ecf2e.tar.gz |
fix -Wfor-loop-analysis and -Wreorder warnings (#15901)
-rw-r--r-- | render-test/metadata.hpp | 6 | ||||
-rw-r--r-- | render-test/runner.cpp | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/render-test/metadata.hpp b/render-test/metadata.hpp index 567c89e3fc..2b007a445c 100644 --- a/render-test/metadata.hpp +++ b/render-test/metadata.hpp @@ -100,14 +100,14 @@ struct GfxProbe { GfxProbe() = default; GfxProbe(const mbgl::gfx::RenderingStats&, const GfxProbe&); - int numDrawCalls; - int numTextures; int numBuffers; + int numDrawCalls; int numFrameBuffers; + int numTextures; - Memory memTextures; Memory memIndexBuffers; Memory memVertexBuffers; + Memory memTextures; }; class TestMetrics { diff --git a/render-test/runner.cpp b/render-test/runner.cpp index 8a4b0b3b0e..0389b83575 100644 --- a/render-test/runner.cpp +++ b/render-test/runner.cpp @@ -1035,7 +1035,8 @@ bool TestRunner::runOperations(const std::string& key, TestMetadata& metadata, R map.flyTo(mbgl::CameraOptions().withCenter(endPos).withZoom(endZoom), animationOptions); - for (; !transitionFinished; frames++) { + while (!transitionFinished) { + frames++; frontend.renderOnce(map); float frameTime = (float)frontend.getFrameTime(); totalTime += frameTime; |