From 32e151c8dfb5d323a17d38a18da71b76cd8ff545 Mon Sep 17 00:00:00 2001 From: ohmed Date: Thu, 27 Jan 2022 18:02:05 +0100 Subject: [PATCH] Fix for shader error logs handling on some devices. --- src/renderers/webgl/WebGLProgram.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderers/webgl/WebGLProgram.js b/src/renderers/webgl/WebGLProgram.js index 660810cbf5..7875a98cf4 100644 --- a/src/renderers/webgl/WebGLProgram.js +++ b/src/renderers/webgl/WebGLProgram.js @@ -839,7 +839,7 @@ function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) { if ( cachedUniforms === undefined ) { // Populates cachedUniforms and cachedAttributes - onFirstUse(); + onFirstUse.call( this ); } @@ -856,7 +856,7 @@ function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) { if ( cachedAttributes === undefined ) { // Populates cachedAttributes and cachedUniforms - onFirstUse(); + onFirstUse.call( this ); }