Main repository of MikuMikuStudio
Révision | 83bde43b91962343ce3c3045f4e08d1b02a8a267 (tree) |
---|---|
l'heure | 2013-04-26 14:40:05 |
Auteur | remy.bouquet@gmail.com <remy.bouquet@gmai...> |
Commiter | remy.bouquet@gmail.com |
ShaderNodes SDK : fix for build
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@10576 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
@@ -156,9 +156,11 @@ public class EditableMatDefFile { | ||
156 | 156 | material.selectTechnique("Default", SceneApplication.getApplication().getRenderManager()); |
157 | 157 | Shader s; |
158 | 158 | if (version.equals(GLSL100)) { |
159 | - s = glsl100.generateShader(material.getActiveTechnique()); | |
159 | + glsl100.initialize(material.getActiveTechnique()); | |
160 | + s = glsl100.generateShader(); | |
160 | 161 | } else { |
161 | - s = glsl150.generateShader(material.getActiveTechnique()); | |
162 | + glsl150.initialize(material.getActiveTechnique()); | |
163 | + s = glsl150.generateShader(); | |
162 | 164 | } |
163 | 165 | for (Iterator<Shader.ShaderSource> it = s.getSources().iterator(); it.hasNext();) { |
164 | 166 | Shader.ShaderSource source = it.next(); |