Webgl points renderer / restore check for hit detection readiness
This commit is contained in:
@@ -460,12 +460,10 @@ class WebGLPointsLayerRenderer extends WebGLLayerRenderer {
|
|||||||
* @param {import("../../PluggableMap.js").FrameState} frameState current frame state
|
* @param {import("../../PluggableMap.js").FrameState} frameState current frame state
|
||||||
*/
|
*/
|
||||||
renderHitDetection(frameState) {
|
renderHitDetection(frameState) {
|
||||||
// skip render entirely if vertices buffers for display & hit detection have different sizes
|
// skip render entirely if vertex buffers not ready/generated yet
|
||||||
// this typically means both buffers are temporarily out of sync
|
if (!this.hitVerticesBuffer_.getSize()) {
|
||||||
// FIXME: adapt this to the new points renderer behaviour
|
return;
|
||||||
// if (this.hitVerticesBuffer_.getSize() !== this.verticesBuffer_.getSize()) {
|
}
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
|
|
||||||
this.hitRenderTarget_.setSize(frameState.size);
|
this.hitRenderTarget_.setSize(frameState.size);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user