From 259d2a90c71b379762c49f7da29f02ba21074956 Mon Sep 17 00:00:00 2001 From: lihuilai Date: Sat, 10 Aug 2019 14:56:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCocosCreator1.8.2=E7=89=88?= =?UTF-8?q?=E6=9C=ACDrawcall=E6=98=BE=E7=A4=BA=E4=B8=BANaN=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/stats/Stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/stats/Stats.js b/libs/stats/Stats.js index 4faee39..0a734df 100644 --- a/libs/stats/Stats.js +++ b/libs/stats/Stats.js @@ -34,7 +34,7 @@ var Stats = function () { function getDrawcalls() { if (window.cc) { - return cc.renderer.drawCalls; + return cc.g_NumberOfDraws || cc.renderer.drawCalls; } else { return Infinity; }