From 714f3377e7677e51eb7e56f2dc0f01e64374bb5a Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Wed, 31 Oct 2018 00:36:15 -0400 Subject: [PATCH] VideoTexture: Set format to RGBFormat by default. --- src/textures/VideoTexture.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/textures/VideoTexture.js b/src/textures/VideoTexture.js index 848b23d249..e07c312bb1 100644 --- a/src/textures/VideoTexture.js +++ b/src/textures/VideoTexture.js @@ -2,10 +2,13 @@ * @author mrdoob / http://mrdoob.com/ */ +import { RGBFormat } from '../constants.js'; import { Texture } from './Texture.js'; function VideoTexture( video, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { + if ( format === undefined ) format = RGBFormat; + Texture.call( this, video, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ); this.generateMipmaps = false; -- GitLab