From 8b493834dccd68a818234bc08e5df341c0fd87c5 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 2 Mar 2023 18:45:42 +0000 Subject: [PATCH] Log can take any parameters --- src/renderer/webgl/WebGLRenderer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/renderer/webgl/WebGLRenderer.js b/src/renderer/webgl/WebGLRenderer.js index d519e889a..bc1d24862 100644 --- a/src/renderer/webgl/WebGLRenderer.js +++ b/src/renderer/webgl/WebGLRenderer.js @@ -889,11 +889,13 @@ var WebGLRenderer = new Class({ } }, - log: function (value) + log: function () { if (DEBUG && this.spector) { - return this.spector.log(value); + var t = Array.prototype.slice.call(arguments).join(' '); + + return this.spector.log(t); } },