diff --git a/port/native/engine/jsb-gfx.js b/port/native/engine/jsb-gfx.js index ccc2f622db..75cb9cfef0 100644 --- a/port/native/engine/jsb-gfx.js +++ b/port/native/engine/jsb-gfx.js @@ -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)); +}