Use size property from the frameState instead of creating new array
This commit is contained in:
@@ -565,11 +565,7 @@ 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) {
|
||||||
const width = frameState.size[0];
|
this.hitRenderTarget_.setSize(frameState.size);
|
||||||
const height = frameState.size[1];
|
|
||||||
const size = [width, height];
|
|
||||||
|
|
||||||
this.hitRenderTarget_.setSize(size);
|
|
||||||
|
|
||||||
this.helper.useProgram(this.hitProgram_);
|
this.helper.useProgram(this.hitProgram_);
|
||||||
this.helper.prepareDrawToRenderTarget(frameState, this.hitRenderTarget_, true);
|
this.helper.prepareDrawToRenderTarget(frameState, this.hitRenderTarget_, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user