提交 93af1630 编写于 作者: M Mr.doob

WebGLRenderLists: No need to call sort if array has 1 or less elements.

上级 1768b296
......@@ -103,8 +103,8 @@ function WebGLRenderList() {
function sort() {
opaque.sort( painterSortStable );
transparent.sort( reversePainterSortStable );
if ( opaque.length > 1 ) opaque.sort( painterSortStable );
if ( transparent.length > 1 ) transparent.sort( reversePainterSortStable );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册