{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/11742","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/11742/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/11742/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/11742/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/11742","id":74037181,"number":11742,"title":"Label createWithTTF and enableShadow return errors in cocos2dx 3.6","user":{"login":"DarioDP","id":6792464,"avatar_url":"https://avatars.githubusercontent.com/u/6792464?v=3","gravatar_id":"","url":"https://api.github.com/users/DarioDP","html_url":"https://github.com/DarioDP","followers_url":"https://api.github.com/users/DarioDP/followers","following_url":"https://api.github.com/users/DarioDP/following{/other_user}","gists_url":"https://api.github.com/users/DarioDP/gists{/gist_id}","starred_url":"https://api.github.com/users/DarioDP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarioDP/subscriptions","organizations_url":"https://api.github.com/users/DarioDP/orgs","repos_url":"https://api.github.com/users/DarioDP/repos","events_url":"https://api.github.com/users/DarioDP/events{/privacy}","received_events_url":"https://api.github.com/users/DarioDP/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-07T15:58:18Z","updated_at":"2015-12-08T08:40:44Z","closed_at":"2015-05-07T16:09:02Z","body":"Just updated to cocos2dx v3.6, my previous working code returns now errors.\r\nI've seen that Label TTF and shadow is the cause, you can simply test with this:\r\n\r\n```\r\nauto title = Label::createWithTTF(\"My Label Text\", \"myfont.ttf\", 40);\r\ntitle->enableShadow();\r\naddChild(title);\r\n```\r\n\r\nThis return:\r\n\r\n**OpenGL error 0x0502 in ..\\renderer\\CCTextureAtlas.cpp cocos2d::TextureAtlas::drawNumberOfQuads 691**\r\n\r\nIf I remove Shadow it's ok, in 3.4 was ok.\r\nHowever the TTF is displayed correctly, but the debug.log grows with this error repeated continuosly.\r\n\r\nAlso change params in enableShadow doesn't change the error.\r\nIf I use Label createWithSystemFont it's ok.\r\nTried also with various TTF, same error."},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/162814386","html_url":"https://github.com/cocos2d/cocos2d-x/issues/11742#issuecomment-162814386","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/11742","id":162814386,"user":{"login":"deathemperor","id":4255482,"avatar_url":"https://avatars.githubusercontent.com/u/4255482?v=3","gravatar_id":"","url":"https://api.github.com/users/deathemperor","html_url":"https://github.com/deathemperor","followers_url":"https://api.github.com/users/deathemperor/followers","following_url":"https://api.github.com/users/deathemperor/following{/other_user}","gists_url":"https://api.github.com/users/deathemperor/gists{/gist_id}","starred_url":"https://api.github.com/users/deathemperor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deathemperor/subscriptions","organizations_url":"https://api.github.com/users/deathemperor/orgs","repos_url":"https://api.github.com/users/deathemperor/repos","events_url":"https://api.github.com/users/deathemperor/events{/privacy}","received_events_url":"https://api.github.com/users/deathemperor/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T08:40:44Z","updated_at":"2015-12-08T08:40:44Z","body":"This issue still exists on Android"}}