{"action":"created","issue":{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1819","labels_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1819/labels{/name}","comments_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1819/comments","events_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1819/events","html_url":"https://github.com/GoodBoyDigital/pixi.js/issues/1819","id":77629920,"number":1819,"title":"CanvasRenderer and cacheAsBitmap issue","user":{"login":"adireddy","id":4947424,"avatar_url":"https://avatars.githubusercontent.com/u/4947424?v=3","gravatar_id":"","url":"https://api.github.com/users/adireddy","html_url":"https://github.com/adireddy","followers_url":"https://api.github.com/users/adireddy/followers","following_url":"https://api.github.com/users/adireddy/following{/other_user}","gists_url":"https://api.github.com/users/adireddy/gists{/gist_id}","starred_url":"https://api.github.com/users/adireddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adireddy/subscriptions","organizations_url":"https://api.github.com/users/adireddy/orgs","repos_url":"https://api.github.com/users/adireddy/repos","events_url":"https://api.github.com/users/adireddy/events{/privacy}","received_events_url":"https://api.github.com/users/adireddy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-18T12:01:07Z","updated_at":"2015-05-18T15:18:09Z","closed_at":"2015-05-18T14:30:50Z","body":"There is an issue when I use `cacheAsBitmap` in CanvasRenderer and I see the following exception:\r\n```\r\nUncaught TypeError: this._generateCachedSprite is not a function\r\n25.Graphics._renderCanvas @ Graphics.js:787\r\n23.Container.renderCanvas @ Container.js:538\r\n43.CanvasRenderer.renderDisplayObject @ CanvasRenderer.js:211\r\n70.RenderTexture.renderCanvas @ RenderTexture.js:348\r\n82.DisplayObject._initCachedDisplayObjectCanvas @ cacheAsBitmap.js:220\r\n82.DisplayObject._renderCachedCanvas @ cacheAsBitmap.js:183\r\n23.Container.renderCanvas @ Container.js:541\r\n23.Container.renderCanvas @ Container.js:541\r\n23.Container.renderCanvas @ Container.js:541\r\n23.Container.renderCanvas @ Container.js:541\r\n43.CanvasRenderer.renderDisplayObject @ CanvasRenderer.js:211\r\n43.CanvasRenderer.render @ CanvasRenderer.js:170\r\n```\r\n\r\nSample here:\r\nhttp://jsfiddle.net/adireddy/nywjn3sq/2/\r\n\r\nIt's working fine in WebGL."},"comment":{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/comments/103094775","html_url":"https://github.com/GoodBoyDigital/pixi.js/issues/1819#issuecomment-103094775","issue_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1819","id":103094775,"user":{"login":"adireddy","id":4947424,"avatar_url":"https://avatars.githubusercontent.com/u/4947424?v=3","gravatar_id":"","url":"https://api.github.com/users/adireddy","html_url":"https://github.com/adireddy","followers_url":"https://api.github.com/users/adireddy/followers","following_url":"https://api.github.com/users/adireddy/following{/other_user}","gists_url":"https://api.github.com/users/adireddy/gists{/gist_id}","starred_url":"https://api.github.com/users/adireddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adireddy/subscriptions","organizations_url":"https://api.github.com/users/adireddy/orgs","repos_url":"https://api.github.com/users/adireddy/repos","events_url":"https://api.github.com/users/adireddy/events{/privacy}","received_events_url":"https://api.github.com/users/adireddy/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T15:18:09Z","updated_at":"2015-05-18T15:18:09Z","body":"Tested and it works :+1: "}}