diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2014-10-21 15:00:44 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2014-10-29 09:58:56 -0400 |
commit | da8aa391d0a1079bbc697207803a48fce8ab916f (patch) | |
tree | 4fbf6a2dcc594860aa43517e6d78c542c7eff115 /src/renderer/painter_debug.cpp | |
parent | 4f7bc80664c29d7f15598392946ff0ac73dd520c (diff) | |
download | qtlocation-mapboxgl-da8aa391d0a1079bbc697207803a48fce8ab916f.tar.gz |
Render map with a copy of TransformState
Diffstat (limited to 'src/renderer/painter_debug.cpp')
-rw-r--r-- | src/renderer/painter_debug.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/renderer/painter_debug.cpp b/src/renderer/painter_debug.cpp index f120533838..5bc36a233c 100644 --- a/src/renderer/painter_debug.cpp +++ b/src/renderer/painter_debug.cpp @@ -25,7 +25,7 @@ void Painter::renderDebugText(DebugBucket& bucket, const mat4 &matrix) { // Draw white outline plainShader->u_color = {{ 1.0f, 1.0f, 1.0f, 1.0f }}; - lineWidth(4.0f * map.getState().getPixelRatio()); + lineWidth(4.0f * state.getPixelRatio()); bucket.drawLines(*plainShader); #ifndef GL_ES_VERSION_2_0 @@ -36,7 +36,7 @@ void Painter::renderDebugText(DebugBucket& bucket, const mat4 &matrix) { // Draw black text. plainShader->u_color = {{ 0.0f, 0.0f, 0.0f, 1.0f }}; - lineWidth(2.0f * map.getState().getPixelRatio()); + lineWidth(2.0f * state.getPixelRatio()); bucket.drawLines(*plainShader); glEnable(GL_DEPTH_TEST); @@ -56,7 +56,7 @@ void Painter::renderDebugFrame(const mat4 &matrix) { // draw tile outline tileBorderArray.bind(*plainShader, tileBorderBuffer, BUFFER_OFFSET(0)); plainShader->u_color = {{ 1.0f, 0.0f, 0.0f, 1.0f }}; - lineWidth(4.0f * map.getState().getPixelRatio()); + lineWidth(4.0f * state.getPixelRatio()); glDrawArrays(GL_LINE_STRIP, 0, (GLsizei)tileBorderBuffer.index()); glEnable(GL_DEPTH_TEST); @@ -87,14 +87,14 @@ void Painter::renderDebugText(const std::vector<std::string> &strings) { VertexArrayObject debugFontArray; debugFontArray.bind(*plainShader, debugFontBuffer, BUFFER_OFFSET(0)); plainShader->u_color = {{ 1.0f, 1.0f, 1.0f, 1.0f }}; - lineWidth(4.0f * map.getState().getPixelRatio()); + lineWidth(4.0f * state.getPixelRatio()); glDrawArrays(GL_LINES, 0, (GLsizei)debugFontBuffer.index()); #ifndef GL_ES_VERSION_2_0 glPointSize(2); glDrawArrays(GL_POINTS, 0, (GLsizei)debugFontBuffer.index()); #endif plainShader->u_color = {{ 0.0f, 0.0f, 0.0f, 1.0f }}; - lineWidth(2.0f * map.getState().getPixelRatio()); + lineWidth(2.0f * state.getPixelRatio()); glDrawArrays(GL_LINES, 0, (GLsizei)debugFontBuffer.index()); } |