weex-gcanvas
Advanced tools
Comparing version 0.5.5 to 0.5.6
@@ -514,3 +514,3 @@ var GBridge = require("./gutil").GBridge; | ||
obj.UNPACK_FLIP_Y_WEBGL = 0x9240; | ||
// obj.UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | ||
obj.UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | ||
// obj.CONTEXT_LOST_WEBGL = 0x9242; | ||
@@ -621,4 +621,4 @@ // obj.UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; | ||
var activeInfo = new GWebGLActiveInfo(); | ||
activeInfo.type = infoArray[0]; | ||
activeInfo.size = infoArray[1]; | ||
activeInfo.type = parseInt(infoArray[0]); | ||
activeInfo.size = parseInt(infoArray[1]); | ||
activeInfo.name = infoArray[2]; | ||
@@ -1095,5 +1095,5 @@ return activeInfo; | ||
var precisionFormat= new GWebGLShaderPrecisionFormat(); | ||
precisionFormat.rangeMin = resultArray[0]; | ||
precisionFormat.rangeMax = resultArray[1]; | ||
precisionFormat.precision = resultArray[2]; | ||
precisionFormat.rangeMin = parseInt(resultArray[0]); | ||
precisionFormat.rangeMax = parseInt(resultArray[1]); | ||
precisionFormat.precision = parseInt(resultArray[2]); | ||
return precisionFormat; | ||
@@ -1202,3 +1202,8 @@ } | ||
GContextWebGL.prototype.pixelStorei = function(pname, param){ | ||
var cmd = (this.pixelStoreiId + pname + "," + (param?1:0) + ";"); | ||
// UNPACK_FLIP_Y_WEBGL = 0x9240; | ||
// obj.UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | ||
//filter _WEBGL feature | ||
if( pname == 0x9240 || pname == 0x9241 ) return; | ||
var cmd = (this.pixelStoreiId + pname + "," + param + ";"); | ||
WebGLCallNative(this.componentId, cmd); | ||
@@ -1205,0 +1210,0 @@ }; |
{ | ||
"name": "weex-gcanvas", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"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
115804
3215