File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,9 +81,9 @@ class Bindings extends DataMap {
8181
8282 const renderObjectData = this . get ( renderObject ) ;
8383
84- if ( renderObjectData . initialized === undefined ) {
84+ if ( renderObjectData . initialized !== true ) {
8585
86- // bind groups are created once per render object
86+ // bind groups are created once per object
8787
8888 this . _createBindings ( bindings ) ;
8989
@@ -104,14 +104,15 @@ class Bindings extends DataMap {
104104 getForCompute ( computeNode ) {
105105
106106 const bindings = this . nodes . getForCompute ( computeNode ) . bindings ;
107+ const computeNodeData = this . get ( computeNode ) ;
107108
108- if ( computeNode . initialized === undefined ) {
109+ if ( computeNodeData . initialized !== true ) {
109110
110- // bind groups are created once per render object
111+ // bind groups are created once per object
111112
112113 this . _createBindings ( bindings ) ;
113114
114- computeNode . initialized = true ;
115+ computeNodeData . initialized = true ;
115116
116117 }
117118
You can’t perform that action at this time.
0 commit comments