Skip to content

Commit

Permalink
Merge pull request #356 from AdenKoperczak/fix_tooltips_without_info_…
Browse files Browse the repository at this point in the history
…layers

Set parameters in each layer to ensure params is set for mouse picking.
  • Loading branch information
dpaulat authored Jan 25, 2025
2 parents e094a98 + 3055284 commit 11fc6ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions scwx-qt/source/scwx/qt/map/draw_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
1 change: 0 additions & 1 deletion scwx-qt/source/scwx/qt/map/marker_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 11fc6ac

Please sign in to comment.