mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fix wx cc.RenderTexture.create for engine/issues/2549 (#2590)
This commit is contained in:
@@ -803,7 +803,7 @@ game.once(game.EVENT_RENDERER_INITED, function () {
|
||||
var gl = this._gl;
|
||||
gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, premultiplyAlpha);
|
||||
if (
|
||||
sys.platform === sys.WECHAT_GAME ||
|
||||
(sys.platform === sys.WECHAT_GAME && !(img instanceof Uint8Array)) ||
|
||||
sys.platform === sys.QQ_PLAY ||
|
||||
img instanceof HTMLCanvasElement ||
|
||||
img instanceof HTMLImageElement ||
|
||||
|
||||
Reference in New Issue
Block a user