[core] Merge RenderLayer::uploadBuckets into RenderSource::startRender

This commit is contained in:
John Firebaugh
2017-06-08 14:44:47 -07:00
parent 17db460345
commit f5d3b850bf
13 changed files with 41 additions and 35 deletions

View File

@@ -1,6 +1,7 @@
#include <mbgl/renderer/render_tile.hpp>
#include <mbgl/renderer/painter.hpp>
#include <mbgl/map/transform_state.hpp>
#include <mbgl/tile/tile.hpp>
namespace mbgl {
@@ -46,6 +47,8 @@ mat4 RenderTile::translatedClipMatrix(const std::array<float, 2>& translation,
}
void RenderTile::startRender(Painter& painter) {
tile.upload(painter.context);
// Calculate two matrices for this tile: matrix is the standard tile matrix; nearClippedMatrix
// clips the near plane to 100 to save depth buffer precision
painter.state.matrixFor(matrix, id);