Skip to content

Commit

Permalink
fix: tint issue that causes it not to apply
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Dec 13, 2024
1 parent 71dc0c8 commit c5ff508
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/engine/Graphics/Context/state-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export class StateStack {
private _cloneState(dest: ContextState) {
dest.opacity = this.current.opacity;
dest.z = this.current.z;
if (dest.tint) {
this.current.tint?.clone(dest.tint);
}
dest.tint = this.current.tint?.clone();
dest.material = this.current.material; // TODO is this going to cause problems when cloning
return dest;
}
Expand Down

0 comments on commit c5ff508

Please sign in to comment.