add setTarget adapter (#7342)

This commit is contained in:
coulsonwang
2020-09-10 10:02:08 +08:00
committed by GitHub
parent b44ce3a3bb
commit edbf237ea4
+6
View File
@@ -532,3 +532,9 @@ textureProto.initialize = function(info) {
oldTextureInitializeFunc.call(this, _converters.TextureInfo(info), false);
}
}
let blendStateProto = gfx.BlendState.prototype;
let oldSetTargetFunc = blendStateProto.setTarget;
blendStateProto.setTarget = function(index, target) {
oldSetTargetFunc.call(this, index, _converters.BlendTarget(target));
}