mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 11:20:05 +00:00
Set parameters in each layer to ensure params is set for mouse picking.
This commit is contained in:
parent
e094a9854f
commit
3055284664
2 changed files with 1 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ void DrawLayer::Render(const QMapLibre::CustomLayerRenderParameters& params)
|
||||||
{
|
{
|
||||||
gl::OpenGLFunctions& gl = p->context_->gl();
|
gl::OpenGLFunctions& gl = p->context_->gl();
|
||||||
p->textureAtlas_ = p->context_->GetTextureAtlas();
|
p->textureAtlas_ = p->context_->GetTextureAtlas();
|
||||||
|
p->context_->set_render_parameters(params);
|
||||||
|
|
||||||
// Determine if the texture atlas changed since last render
|
// Determine if the texture atlas changed since last render
|
||||||
std::uint64_t newTextureAtlasBuildCount =
|
std::uint64_t newTextureAtlasBuildCount =
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,6 @@ void MarkerLayer::Impl::set_icon_sheets()
|
||||||
void MarkerLayer::Render(const QMapLibre::CustomLayerRenderParameters& params)
|
void MarkerLayer::Render(const QMapLibre::CustomLayerRenderParameters& params)
|
||||||
{
|
{
|
||||||
gl::OpenGLFunctions& gl = context()->gl();
|
gl::OpenGLFunctions& gl = context()->gl();
|
||||||
context()->set_render_parameters(params);
|
|
||||||
|
|
||||||
DrawLayer::Render(params);
|
DrawLayer::Render(params);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue