diff options
Diffstat (limited to 'src/mbgl/renderer/painter_debug.cpp')
-rw-r--r-- | src/mbgl/renderer/painter_debug.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mbgl/renderer/painter_debug.cpp b/src/mbgl/renderer/painter_debug.cpp index 5c6573aa7f..f1cf755898 100644 --- a/src/mbgl/renderer/painter_debug.cpp +++ b/src/mbgl/renderer/painter_debug.cpp @@ -28,12 +28,12 @@ void Painter::renderDebugText(TileData& tileData, const mat4 &matrix) { tileData.debugBucket = std::make_unique<DebugBucket>(tileData.id, tileData.getState()); } - useProgram(plainShader->program); + config.program = plainShader->program; plainShader->u_matrix = matrix; // Draw white outline plainShader->u_color = {{ 1.0f, 1.0f, 1.0f, 1.0f }}; - lineWidth(4.0f * data.pixelRatio); + config.lineWidth = 4.0f * data.pixelRatio; tileData.debugBucket->drawLines(*plainShader); #ifndef GL_ES_VERSION_2_0 @@ -44,7 +44,7 @@ void Painter::renderDebugText(TileData& tileData, const mat4 &matrix) { // Draw black text. plainShader->u_color = {{ 0.0f, 0.0f, 0.0f, 1.0f }}; - lineWidth(2.0f * data.pixelRatio); + config.lineWidth = 2.0f * data.pixelRatio; tileData.debugBucket->drawLines(*plainShader); config.depthTest = true; @@ -59,12 +59,12 @@ void Painter::renderDebugFrame(const mat4 &matrix) { config.depthTest = false; config.stencilTest = true; - useProgram(plainShader->program); + config.program = plainShader->program; plainShader->u_matrix = 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 * data.pixelRatio); + config.lineWidth = 4.0f * data.pixelRatio; MBGL_CHECK_ERROR(glDrawArrays(GL_LINE_STRIP, 0, (GLsizei)tileBorderBuffer.index())); } |