Skip to content

Commit

Permalink
文字卡顿bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
KylinLove committed Apr 11, 2020
1 parent bcad1c8 commit 05f03a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/layaAir/laya/webgl/text/TextRender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ export class TextRender {
if (this.hasFreedText(sameTexData)) {
sameTexData = wt.pageChars = [];
}
if(isWT && (this.fontScaleX!=wt.scalex || this.fontScaleY!=wt.scaley)) {
// 文字缩放要清理缓存
sameTexData = wt.pageChars = [];
}
// if(isWT && (this.fontScaleX!=wt.scalex || this.fontScaleY!=wt.scaley)) {
// // 文字缩放要清理缓存
// sameTexData = wt.pageChars = [];
// }
}
var ri: CharRenderInfo = null;
//var oneTex: boolean = isWT || TextRender.forceWholeRender; // 如果能缓存的话,就用一张贴图
Expand Down

0 comments on commit 05f03a9

Please sign in to comment.