Skip to content

Commit b8b14b8

Browse files
committed
fix compute node data
1 parent 8563815 commit b8b14b8

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/renderers/common/Bindings.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)