瀏覽代碼

Clean up.

Mr.doob 8 年之前
父節點
當前提交
9cf0edcc8a
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      src/renderers/WebGLRenderer.js

+ 9 - 9
src/renderers/WebGLRenderer.js

@@ -406,15 +406,6 @@ function WebGLRenderer( parameters ) {
 
 	};
 
-	this.getDrawingBufferSize = function () {
-
-		return {
-			width: _width * _pixelRatio,
-			height: _height * _pixelRatio
-		};
-
-	};
-
 	this.setSize = function ( width, height, updateStyle ) {
 
 		var device = vr.getDevice();
@@ -443,6 +434,15 @@ function WebGLRenderer( parameters ) {
 
 	};
 
+	this.getDrawingBufferSize = function () {
+
+		return {
+			width: _width * _pixelRatio,
+			height: _height * _pixelRatio
+		};
+
+	};
+
 	this.setDrawingBufferSize = function ( width, height, pixelRatio ) {
 
 		_width = width;