Merge pull request #356 from AdenKoperczak/fix_tooltips_without_info_layers

Set parameters in each layer to ensure params is set for mouse picking.
This commit is contained in:
Dan Paulat 2025-01-24 23:35:05 -06:00 committed by GitHub
commit 11fc6ac495
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View file

@ -48,6 +48,7 @@ void DrawLayer::Render(const QMapLibre::CustomLayerRenderParameters& params)
{
gl::OpenGLFunctions& gl = p->context_->gl();
p->textureAtlas_ = p->context_->GetTextureAtlas();
p->context_->set_render_parameters(params);
// Determine if the texture atlas changed since last render
std::uint64_t newTextureAtlasBuildCount =

View file

@ -162,7 +162,6 @@ void MarkerLayer::Impl::set_icon_sheets()
void MarkerLayer::Render(const QMapLibre::CustomLayerRenderParameters& params)
{
gl::OpenGLFunctions& gl = context()->gl();
context()->set_render_parameters(params);
DrawLayer::Render(params);