Browse Source

Add comment to WebGLBindingStates

Takahiro 6 years ago
parent
commit
11ae623206
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/renderers/webgl/WebGLBindingStates.js

+ 3 - 0
src/renderers/webgl/WebGLBindingStates.js

@@ -162,6 +162,9 @@ function WebGLBindingStates( gl, extensions, attributes, capabilities ) {
 
 	}
 
+	// If we sacrifice some BufferGeometry/Attribute API flexibility
+	// needsUpdate() and saveCache() can be much simpler. See #16287
+
 	function needsUpdate( geometry ) {
 
 		var cachedAttributes = currentState.attributes;