Eliminate StyleSource

Fixes #695
This commit is contained in:
John Firebaugh
2015-04-03 13:51:11 -07:00
parent 87d9507854
commit 7e0e55e542
13 changed files with 69 additions and 108 deletions

View File

@@ -6,7 +6,7 @@
using namespace mbgl;
void Painter::drawClippingMasks(const std::set<util::ptr<StyleSource>> &sources) {
void Painter::drawClippingMasks(const std::set<Source*>& sources) {
gl::group group("clipping masks");
useProgram(plainShader->program);
@@ -18,7 +18,7 @@ void Painter::drawClippingMasks(const std::set<util::ptr<StyleSource>> &sources)
coveringPlainArray.bind(*plainShader, tileStencilBuffer, BUFFER_OFFSET(0));
for (const auto& source : sources) {
source->source->drawClippingMasks(*this);
source->drawClippingMasks(*this);
}
MBGL_CHECK_ERROR(glEnable(GL_DEPTH_TEST));