Define draw item shaders in draw items, not the generic draw layer

This commit is contained in:
Dan Paulat 2022-10-03 00:11:39 -05:00
parent d84a618d3d
commit 224d36bae5
8 changed files with 88 additions and 83 deletions

View file

@ -59,7 +59,7 @@ public:
// TODO: OpenGL context with shaders
GeoLine::GeoLine(OpenGLFunctions& gl) :
DrawItem(), p(std::make_unique<Impl>(gl))
DrawItem(gl), p(std::make_unique<Impl>(gl))
{
}
GeoLine::~GeoLine() = default;
@ -118,7 +118,7 @@ void GeoLine::Initialize()
p->dirty_ = true;
}
void GeoLine::Render()
void GeoLine::Render(const QMapbox::CustomLayerRenderParameters&)
{
if (p->visible_)
{