From 3ddc37a7e9afca802616887342a3601d66c8356d Mon Sep 17 00:00:00 2001 From: Christoph Diehl <1614333+posidron@users.noreply.github.com> Date: Tue, 20 Feb 2018 02:45:45 +0100 Subject: [PATCH] Add texture sources for WebGL --- lib/make/webgl.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/make/webgl.js b/lib/make/webgl.js index 9918648..9354ac6 100644 --- a/lib/make/webgl.js +++ b/lib/make/webgl.js @@ -53,5 +53,16 @@ }, renderbufferTarget: () => { return 'RENDERBUFFER' + }, + textureSources: () => { + sources = [ + 'HTMLCanvasElement', + 'HTMLImageElement', + 'HTMLVideoElement', + 'ImageBitmap', + 'ImageData', + 'ArrayBufferView' + ] + return random.item(sources) } }