{"action":"closed","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16870","repository_url":"https://api.github.com/repos/cocos2d/cocos2d-x","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16870/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16870/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16870/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/16870","id":190240967,"number":16870,"title":"Material second shader texture will be lost,when removeUnusedTextures","user":{"login":"linyouhappy","id":1627891,"avatar_url":"https://avatars.githubusercontent.com/u/1627891?v=3","gravatar_id":"","url":"https://api.github.com/users/linyouhappy","html_url":"https://github.com/linyouhappy","followers_url":"https://api.github.com/users/linyouhappy/followers","following_url":"https://api.github.com/users/linyouhappy/following{/other_user}","gists_url":"https://api.github.com/users/linyouhappy/gists{/gist_id}","starred_url":"https://api.github.com/users/linyouhappy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linyouhappy/subscriptions","organizations_url":"https://api.github.com/users/linyouhappy/orgs","repos_url":"https://api.github.com/users/linyouhappy/repos","events_url":"https://api.github.com/users/linyouhappy/events{/privacy}","received_events_url":"https://api.github.com/users/linyouhappy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-18T05:46:27Z","updated_at":"2016-11-21T10:20:32Z","closed_at":"2016-11-21T10:20:31Z","body":"var mat = cc.Material.createWithFilename(\"demo.material\");\r\nsprite3D.setMaterial(mat);\r\ncc.TextureCache.getInstance().removeUnusedTextures();\r\n\r\nwhat is happen?\r\nsprite3D will lost the u_sampler0 textures. why Material not save the texture(u_sampler0)?\r\n\r\ndemo.material file:\r\nmaterial demo\r\n{\r\n\ttechnique\r\n\t{\r\n\t\tpass\r\n\t\t{\r\n\t\t\tshader\r\n\t\t\t{\r\n\t\t\t\tvertexShader = ccShader_3D_PositionTex.vert\r\n\t\t\t\tfragmentShader = ccShader_3D_ColorTex.frag\r\n\t\t\t\tsampler u_sampler0\r\n\t\t\t\t{\r\n\t\t\t\t\tpath = daytime_lawn.png\r\n\t\t\t\t\twrapS = REPEAT\r\n\t\t\t\t\twrapT = REPEAT\r\n\t\t\t\t\tminFilter = NEAREST\r\n\t\t\t\t\tmagFilter = NEAREST\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}"}}
{"actor":{"display_login":"dumganhar"}}