From 44c7e9d05edbe6fee9e8f98b91380b6c07e57ac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 27 Sep 2016 17:52:14 +0200 Subject: [core] merge gl::ObjectStore into gl::Context --- src/mbgl/renderer/painter_debug.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mbgl/renderer/painter_debug.cpp') diff --git a/src/mbgl/renderer/painter_debug.cpp b/src/mbgl/renderer/painter_debug.cpp index 7aeb5cc6e1..09cf676b49 100644 --- a/src/mbgl/renderer/painter_debug.cpp +++ b/src/mbgl/renderer/painter_debug.cpp @@ -46,18 +46,18 @@ void Painter::renderDebugText(Tile& tile, const mat4 &matrix) { // Draw white outline plainShader.u_color = Color::white(); context.lineWidth = 4.0f * frame.pixelRatio; - tile.debugBucket->drawLines(plainShader, store, context); + tile.debugBucket->drawLines(plainShader, context); #ifndef GL_ES_VERSION_2_0 // Draw line "end caps" MBGL_CHECK_ERROR(glPointSize(2)); - tile.debugBucket->drawPoints(plainShader, store, context); + tile.debugBucket->drawPoints(plainShader, context); #endif // Draw black text. plainShader.u_color = Color::black(); context.lineWidth = 2.0f * frame.pixelRatio; - tile.debugBucket->drawLines(plainShader, store, context); + tile.debugBucket->drawLines(plainShader, context); context.depthFunc.reset(); context.depthTest = GL_TRUE; @@ -79,7 +79,7 @@ void Painter::renderDebugFrame(const mat4 &matrix) { plainShader.u_opacity = 1.0f; // draw tile outline - tileBorderArray.bind(plainShader, tileBorderBuffer, BUFFER_OFFSET_0, store, context); + tileBorderArray.bind(plainShader, tileBorderBuffer, BUFFER_OFFSET_0, context); plainShader.u_color = { 1.0f, 0.0f, 0.0f, 1.0f }; context.lineWidth = 4.0f * frame.pixelRatio; MBGL_CHECK_ERROR(glDrawArrays(GL_LINE_STRIP, 0, (GLsizei)tileBorderBuffer.index())); -- cgit v1.2.1