summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/painters/painter_background.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-07-06 15:31:30 +0200
committerKonstantin Käfer <mail@kkaefer.com>2017-07-11 14:59:04 +0200
commit2d36983bbb1131282241bd4d8b5240bf2c86d0ec (patch)
tree1cef276be48fe6db6dcede1604efc70a00c8a49b /src/mbgl/renderer/painters/painter_background.cpp
parentcbdfabb4b5c86a5ed8611527cbeb36aaf00c58c7 (diff)
downloadqtlocation-mapboxgl-2d36983bbb1131282241bd4d8b5240bf2c86d0ec.tar.gz
[core] add IndexedPrimitives/Drawables object to encapsulate primitive construction
Diffstat (limited to 'src/mbgl/renderer/painters/painter_background.cpp')
-rw-r--r--src/mbgl/renderer/painters/painter_background.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mbgl/renderer/painters/painter_background.cpp b/src/mbgl/renderer/painters/painter_background.cpp
index 577d7d6cda..0378182c16 100644
--- a/src/mbgl/renderer/painters/painter_background.cpp
+++ b/src/mbgl/renderer/painters/painter_background.cpp
@@ -49,9 +49,9 @@ void Painter::renderBackground(PaintParameters& parameters, const RenderBackgrou
tileID,
state
),
- tileVertexBuffer,
- quadTriangleIndexBuffer,
- tileTriangleSegments,
+ fillDrawable.vertices,
+ fillDrawable.indices,
+ fillDrawable.segments,
paintAttibuteData,
properties,
state.getZoom()
@@ -69,9 +69,9 @@ void Painter::renderBackground(PaintParameters& parameters, const RenderBackgrou
uniforms::u_matrix::Value{ matrixForTile(tileID) },
uniforms::u_world::Value{ context.viewport.getCurrentValue().size },
},
- tileVertexBuffer,
- quadTriangleIndexBuffer,
- tileTriangleSegments,
+ fillDrawable.vertices,
+ fillDrawable.indices,
+ fillDrawable.segments,
paintAttibuteData,
properties,
state.getZoom()