Browse Source

we don't like exclamation points here!

Joel 6 years ago
parent
commit
68e6323bea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/renderers/webgl/WebGLRenderStates.js

+ 2 - 2
src/renderers/webgl/WebGLRenderStates.js

@@ -72,7 +72,7 @@ function WebGLRenderStates() {
 
 		var renderState;
 
-		if ( ! renderStates.has( scene ) ) {
+		if ( renderStates.has( scene ) === false ) {
 
 			renderState = new WebGLRenderState();
 			renderStates.set( scene, new WeakMap() );
@@ -82,7 +82,7 @@ function WebGLRenderStates() {
 
 		} else {
 
-			if ( ! renderStates.get( scene ).has( camera ) ) {
+			if ( renderStates.get( scene ).has( camera ) === false ) {
 
 				renderState = new WebGLRenderState();
 				renderStates.get( scene ).set( camera, renderState );