Handle ReprojTile

This commit is contained in:
mike-000
2021-11-08 12:01:16 +00:00
parent 6a0d0c1eeb
commit f4134b873b

View File

@@ -5,6 +5,7 @@
import EventTarget from '../events/Target.js';
import EventType from '../events/EventType.js';
import ImageTile from '../ImageTile.js';
import ReprojTile from '../reproj/Tile.js';
import TileState from '../TileState.js';
import WebGLArrayBuffer from './Buffer.js';
import {ARRAY_BUFFER, STATIC_DRAW} from '../webgl.js';
@@ -152,7 +153,7 @@ class TileTexture extends EventTarget {
const gl = helper.getGL();
const tile = this.tile;
if (tile instanceof ImageTile) {
if (tile instanceof ImageTile || tile instanceof ReprojTile) {
const texture = gl.createTexture();
this.textures.push(texture);
this.bandCount = 4;