Skip to content

Commit

Permalink
fix: material lost rendermode after reload
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguzhu committed Jan 31, 2024
1 parent 9fad043 commit 96ab0d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/layaAir/laya/loaders/MaterialLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class MaterialLoader implements IResourceLoader {
obsoluteInst.setShaderName(mat._shader.name);
mat._shaderValues.cloneTo(obsoluteInst._shaderValues);
obsoluteInst.renderQueue = mat.renderQueue;
obsoluteInst.materialRenderMode = mat.materialRenderMode;
obsoluteInst.obsolute = false;
mat.destroy();
return obsoluteInst;
Expand Down

0 comments on commit 96ab0d0

Please sign in to comment.