Skip to content

Commit 1246eba

Browse files
author
Don McCurdy
committed
Reorder texture props
1 parent 023faa9 commit 1246eba

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

modules/aggregation-layers/src/heatmap-layer/heatmap-layer.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,17 @@ export default class HeatmapLayer<
372372

373373
this.setState({
374374
weightsTexture: this.context.device.createTexture({
375+
...TEXTURE_PROPS,
375376
width: textureSize,
376377
height: textureSize,
377378
format,
378-
...TEXTURE_PROPS
379379
}),
380-
maxWeightsTexture: this.context.device.createTexture({width: 1, height: 1, format, ...TEXTURE_PROPS})
380+
maxWeightsTexture: this.context.device.createTexture({
381+
...TEXTURE_PROPS,
382+
width: 1,
383+
height: 1,
384+
format,
385+
})
381386
});
382387
}
383388

@@ -572,10 +577,10 @@ export default class HeatmapLayer<
572577
} else {
573578
colorTexture?.destroy();
574579
colorTexture = this.context.device.createTexture({
580+
...TEXTURE_PROPS,
575581
data: colors,
576582
width: colorRange.length,
577583
height: 1,
578-
...TEXTURE_PROPS
579584
});
580585
}
581586
this.setState({colorTexture});

0 commit comments

Comments
 (0)