{"action":"opened","issue":{"url":"https://api.github.com/repos/openfl/openfl/issues/794","labels_url":"https://api.github.com/repos/openfl/openfl/issues/794/labels{/name}","comments_url":"https://api.github.com/repos/openfl/openfl/issues/794/comments","events_url":"https://api.github.com/repos/openfl/openfl/issues/794/events","html_url":"https://github.com/openfl/openfl/issues/794","id":101277772,"number":794,"title":"BitmapData.draw ignoring clipRect","user":{"login":"mcheshkov","id":1045163,"avatar_url":"https://avatars.githubusercontent.com/u/1045163?v=3","gravatar_id":"","url":"https://api.github.com/users/mcheshkov","html_url":"https://github.com/mcheshkov","followers_url":"https://api.github.com/users/mcheshkov/followers","following_url":"https://api.github.com/users/mcheshkov/following{/other_user}","gists_url":"https://api.github.com/users/mcheshkov/gists{/gist_id}","starred_url":"https://api.github.com/users/mcheshkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcheshkov/subscriptions","organizations_url":"https://api.github.com/users/mcheshkov/orgs","repos_url":"https://api.github.com/users/mcheshkov/repos","events_url":"https://api.github.com/users/mcheshkov/events{/privacy}","received_events_url":"https://api.github.com/users/mcheshkov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-16T16:17:08Z","updated_at":"2015-08-16T16:17:08Z","closed_at":null,"body":"Possible solution is to have this before `source.__renderCanvas`\r\n\r\n```haxe\r\nif (clipRect != null){\r\n\trenderSession.maskManager.pushRect(clipRect, matrix);\r\n}\r\n```\r\n\r\nand this after\r\n\r\n```haxe\r\nif (clipRect != null){\r\n\trenderSession.maskManager.popMask();\r\n}\r\n```"}}