Skip to content

Commit

Permalink
fix syntax error in #138 (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiweicao committed May 5, 2023
1 parent d52df9f commit 4e5e4e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const platform = {

setProperties( properties ) {

this.properties = Object.assign( this.properties ?? {}, properties );
this.properties = Object.assign( this.properties || {}, properties );

}

Expand Down
2 changes: 1 addition & 1 deletion src/renderers/WebGLRenderTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class WebGLRenderTarget extends EventDispatcher {
* it only works in depthBuffer true & stencilBuffer false & depthTexture null
* see WebGlTextures.setupRenderBufferStorage
* */
this.useDEPTH_COMPONENT24 = platform.properties?.rendertargetUseDEPTH_COMPONENT24;
platform.properties && ( this.useDEPTH_COMPONENT24 = platform.properties.rendertargetUseDEPTH_COMPONENT24 );

}

Expand Down

0 comments on commit 4e5e4e6

Please sign in to comment.