Repository navigation
Clear RenderGeoJSONSource tilePyramid if no data is available - #9883
Conversation
There was a problem hiding this comment.
Given that we're already checking needsUpdate, we can remove the pointer comparison altogether.
c75552d to
b62041d
Compare
|
Are you sure this is the issue? I considered this possibility when I wrote this code, and concluded it wasn't possible:
|
|
OK, let's get back to the following assumptions:
This guarantees the pointer comparison arithmetic would be valid by following the ownership chain described in #9883 (comment). However, there is an exception: When In sum: we could also solve this problem by always updating |
|
Ahh, good analysis -- I hadn't considered that possibility.
Yeah, that sounds like the correct approach. Corrected version would be something like: |
b62041d to
9bbb4ae
Compare
9bbb4ae to
0466f3b
Compare
In some circumstances, two different objects might get the same memory address if the former has been deleted before the latter gets constructed. Thus, we cannot rely solely on pointer comparsion when checking whether to update the tile data in
RenderGeoJSONSource::tylePiramid.Fixes #9868.