weex-gcanvas
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -686,6 +686,12 @@ var GBridge = require("./gutil").GBridge; | ||
return; | ||
} | ||
} | ||
var bindTextureFunc = function() | ||
{ | ||
if( GBridge.isIOS() ) | ||
{ | ||
GBridge.bindImageTexture(that.componentId, image.src, function(){}); | ||
that._concatDrawCmd(numArgs, image, sx, sy, sw, sh, dx, dy, dw, dh); | ||
that._saveImageTexture(image.src, image); | ||
} | ||
else | ||
{ | ||
GBridge.bindImageTexture(that.componentId, image.src, function(e){ | ||
@@ -706,12 +712,2 @@ if( !e.error ) | ||
} | ||
if( this._firstBindFlag ) | ||
{ | ||
setTimeout(bindTextureFunc, 16); //首次bind延迟16毫秒解决iOS的glGenTexture返回错误问题 | ||
this._firstBindFlag = false; | ||
} | ||
else | ||
{ | ||
bindTextureFunc(); | ||
} | ||
}; | ||
@@ -718,0 +714,0 @@ |
{ | ||
"name": "weex-gcanvas", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"main":"gcanvas.js", | ||
@@ -5,0 +5,0 @@ "platform": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
94520
2678