{"action":"created","issue":{"url":"https://api.github.com/repos/photonstorm/phaser-ce/issues/195","repository_url":"https://api.github.com/repos/photonstorm/phaser-ce","labels_url":"https://api.github.com/repos/photonstorm/phaser-ce/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/photonstorm/phaser-ce/issues/195/comments","events_url":"https://api.github.com/repos/photonstorm/phaser-ce/issues/195/events","html_url":"https://github.com/photonstorm/phaser-ce/pull/195","id":226132431,"number":195,"title":"Removing nested ifs. GLSL has limits of nested ifs.","user":{"login":"tanquetav","id":4633755,"avatar_url":"https://avatars2.githubusercontent.com/u/4633755?v=3","gravatar_id":"","url":"https://api.github.com/users/tanquetav","html_url":"https://github.com/tanquetav","followers_url":"https://api.github.com/users/tanquetav/followers","following_url":"https://api.github.com/users/tanquetav/following{/other_user}","gists_url":"https://api.github.com/users/tanquetav/gists{/gist_id}","starred_url":"https://api.github.com/users/tanquetav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanquetav/subscriptions","organizations_url":"https://api.github.com/users/tanquetav/orgs","repos_url":"https://api.github.com/users/tanquetav/repos","events_url":"https://api.github.com/users/tanquetav/events{/privacy}","received_events_url":"https://api.github.com/users/tanquetav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-03T22:25:48Z","updated_at":"2017-05-04T12:06:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/photonstorm/phaser-ce/pulls/195","html_url":"https://github.com/photonstorm/phaser-ce/pull/195","diff_url":"https://github.com/photonstorm/phaser-ce/pull/195.diff","patch_url":"https://github.com/photonstorm/phaser-ce/pull/195.patch"},"body":"\r\nThis PR changes  Nothing, it's a bug fix\r\n\r\nDescribe the changes below:\r\n\r\nI was trying to enable  multitexture in modern GPU (Intel 530 and NVIDIA 950M) that has 16 texture units, but when try to compile the fragment shader occour error because the nested ifs. I suspect that there is a limit about nested ifs in GLSL and the if else if else if ... throws this error. I change to if  statement return , avoiding use the else if\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/photonstorm/phaser-ce/issues/comments/299166470","html_url":"https://github.com/photonstorm/phaser-ce/pull/195#issuecomment-299166470","issue_url":"https://api.github.com/repos/photonstorm/phaser-ce/issues/195","id":299166470,"user":{"login":"tanquetav","id":4633755,"avatar_url":"https://avatars2.githubusercontent.com/u/4633755?v=3","gravatar_id":"","url":"https://api.github.com/users/tanquetav","html_url":"https://github.com/tanquetav","followers_url":"https://api.github.com/users/tanquetav/followers","following_url":"https://api.github.com/users/tanquetav/following{/other_user}","gists_url":"https://api.github.com/users/tanquetav/gists{/gist_id}","starred_url":"https://api.github.com/users/tanquetav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanquetav/subscriptions","organizations_url":"https://api.github.com/users/tanquetav/orgs","repos_url":"https://api.github.com/users/tanquetav/repos","events_url":"https://api.github.com/users/tanquetav/events{/privacy}","received_events_url":"https://api.github.com/users/tanquetav/received_events","type":"User","site_admin":false},"created_at":"2017-05-04T12:06:26Z","updated_at":"2017-05-04T12:06:26Z","body":"I found a stackoverflow  question complains about the same problem:\r\n\r\nhttp://stackoverflow.com/questions/15828966/glsl-compile-error-memory-exhausted\r\n\r\nFortunately we can change the logic in this case inside phaser"}}
{"actor":{"display_login":"tanquetav"}}