修复CocosCreator1.8.2版本Drawcall显示为NaN的问题

This commit is contained in:
lihuilai 2019-08-10 14:56:48 +08:00
parent 3cb2cca68f
commit 259d2a90c7

View File

@ -34,7 +34,7 @@ var Stats = function () {
function getDrawcalls() { function getDrawcalls() {
if (window.cc) { if (window.cc) {
return cc.renderer.drawCalls; return cc.g_NumberOfDraws || cc.renderer.drawCalls;
} else { } else {
return Infinity; return Infinity;
} }