Commit 462a7f10 authored by wjf's avatar wjf

2.0.33

parent c9415cb3
This diff is collapsed.
This diff is collapsed.
{
"name": "fyge",
"version": "2.0.32",
"version": "2.0.33",
"description": "canvas渲染引擎",
"main": "./build/fyge.min.js",
"types": "./build/types.d.ts",
......
......@@ -408,7 +408,7 @@
packGeometry函数大修改,涉及vao初始化及已存在时(包括阴影里的处理),upload前处理
generateVaoBuffer函数里注释了packGeometry,
2.0.33 Sprite的texture的set方法里加判断,destroyed为true也return;
大尺寸纹理首次传gpu使用时会掉帧,越大耗时越多。考虑如何处理
......
......@@ -7,7 +7,7 @@
* @name VERSION
* @type {string}
*/
export const VERSION = "2.0.32";
export const VERSION = "2.0.33";
/**
......
......@@ -472,7 +472,7 @@ export default class Sprite extends Container {
* 设置纹理
*/
set texture(value: Texture) {
if (this._texture === value) {
if (this._texture === value || this.destroyed) {//如果已经被销毁了,不用再执行下面,
return;
}
//如果存在原贴图,且还没加载好,移除监听_onTextureUpdate;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment