From caa86474b488ebffe933f6395ee3f1a257197d8b Mon Sep 17 00:00:00 2001 From: Mugen87 Date: Mon, 17 Aug 2020 12:48:08 +0200 Subject: [PATCH] WebGLRenderer: Remove superfluous program check in setProgram(). --- src/renderers/WebGLRenderer.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/renderers/WebGLRenderer.js b/src/renderers/WebGLRenderer.js index 067a768f42bb36..d923459d0984ef 100644 --- a/src/renderers/WebGLRenderer.js +++ b/src/renderers/WebGLRenderer.js @@ -1479,11 +1479,7 @@ function WebGLRenderer( parameters ) { if ( material.version === materialProperties.__version ) { - if ( materialProperties.program === undefined ) { - - initMaterial( material, scene, object ); - - } else if ( material.fog && materialProperties.fog !== fog ) { + if ( material.fog && materialProperties.fog !== fog ) { initMaterial( material, scene, object );