{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16899","repository_url":"https://api.github.com/repos/cocos2d/cocos2d-x","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16899/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16899/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16899/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/16899","id":191445214,"number":16899,"title":"How to use glBlendFuncSeparate for render texture","user":{"login":"waqas19921","id":17469425,"avatar_url":"https://avatars.githubusercontent.com/u/17469425?v=3","gravatar_id":"","url":"https://api.github.com/users/waqas19921","html_url":"https://github.com/waqas19921","followers_url":"https://api.github.com/users/waqas19921/followers","following_url":"https://api.github.com/users/waqas19921/following{/other_user}","gists_url":"https://api.github.com/users/waqas19921/gists{/gist_id}","starred_url":"https://api.github.com/users/waqas19921/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waqas19921/subscriptions","organizations_url":"https://api.github.com/users/waqas19921/orgs","repos_url":"https://api.github.com/users/waqas19921/repos","events_url":"https://api.github.com/users/waqas19921/events{/privacy}","received_events_url":"https://api.github.com/users/waqas19921/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-24T06:49:16Z","updated_at":"2016-11-25T02:45:56Z","closed_at":null,"body":"- cocos2d-x version: 3.11\r\n- devices test on: android\r\n- developing environments\r\n   - NDK version: 12.1\r\n\r\ni have used\r\n `renderTexture->getSprite()->setBlendFunc(BlendFunc::ALPHA_PREMULTIPLIED);`\r\n\r\nwhich is equivalent to\r\n `glBlendFuncSeparate(GL_ONE, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);`\r\n\r\nbut how can i achieve this\r\n`glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);`"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/262870404","html_url":"https://github.com/cocos2d/cocos2d-x/issues/16899#issuecomment-262870404","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16899","id":262870404,"user":{"login":"minggo","id":488203,"avatar_url":"https://avatars.githubusercontent.com/u/488203?v=3","gravatar_id":"","url":"https://api.github.com/users/minggo","html_url":"https://github.com/minggo","followers_url":"https://api.github.com/users/minggo/followers","following_url":"https://api.github.com/users/minggo/following{/other_user}","gists_url":"https://api.github.com/users/minggo/gists{/gist_id}","starred_url":"https://api.github.com/users/minggo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minggo/subscriptions","organizations_url":"https://api.github.com/users/minggo/orgs","repos_url":"https://api.github.com/users/minggo/repos","events_url":"https://api.github.com/users/minggo/events{/privacy}","received_events_url":"https://api.github.com/users/minggo/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T02:45:56Z","updated_at":"2016-11-25T02:45:56Z","body":"You can create an instance of BlendFunc by your self. \r\n\r\n> glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);\r\n\r\nWhy it has 4 parameters?"}}
{"actor":{"display_login":"minggo"}}