mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
add setTarget adapter (#7342)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user