Browse Source

Added clearColor, clearDepth and clearStencil placeholder methods to CanvasRenderer.

Mr.doob 11 years ago
parent
commit
dd5965430e
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/renderers/CanvasRenderer.js

+ 6 - 1
src/renderers/CanvasRenderer.js

@@ -248,9 +248,14 @@ THREE.CanvasRenderer = function ( parameters ) {
 
 		}
 
-
 	};
 
+	// compatibility
+
+	this.clearColor = function () {};
+	this.clearDepth = function () {};
+	this.clearStencil = function () {};
+
 	this.render = function ( scene, camera ) {
 
 		if ( camera instanceof THREE.Camera === false ) {