Handle ReprojTile
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user