@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user