File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -159,9 +159,11 @@ export default class FlexTarget {
159
159
160
160
_enableFlexItem ( ) {
161
161
this . _ensureFlexItem ( ) ;
162
- const flexParent = this . _target . _parent . _layout ;
163
- this . _flexItem . ctr = flexParent . _flex ;
164
- flexParent . changedContents ( ) ;
162
+ if ( this . _target . _parent ) {
163
+ const flexParent = this . _target . _parent . _layout ;
164
+ this . _flexItem . ctr = flexParent . _flex ;
165
+ flexParent . changedContents ( ) ;
166
+ }
165
167
this . _checkEnabled ( ) ;
166
168
}
167
169
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export default class DefaultShader extends C2dShader {
33
33
let length = operation . length ;
34
34
for ( let i = 0 ; i < length ; i ++ ) {
35
35
const tx = operation . getTexture ( i ) ;
36
+ if ( ! tx ) continue ;
36
37
const vc = operation . getElementCore ( i ) ;
37
38
const rc = operation . getRenderContext ( i ) ;
38
39
const white = operation . getWhite ( i ) ;
You can’t perform that action at this time.
0 commit comments