ShaderNodes SDK : fix for build

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10576 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 12 years ago
parent 4f3319f049
commit 17a18bb6d0
  1. 6
      sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/EditableMatDefFile.java

@ -156,9 +156,11 @@ public class EditableMatDefFile {
material.selectTechnique("Default", SceneApplication.getApplication().getRenderManager()); material.selectTechnique("Default", SceneApplication.getApplication().getRenderManager());
Shader s; Shader s;
if (version.equals(GLSL100)) { if (version.equals(GLSL100)) {
s = glsl100.generateShader(material.getActiveTechnique()); glsl100.initialize(material.getActiveTechnique());
s = glsl100.generateShader();
} else { } else {
s = glsl150.generateShader(material.getActiveTechnique()); glsl150.initialize(material.getActiveTechnique());
s = glsl150.generateShader();
} }
for (Iterator<Shader.ShaderSource> it = s.getSources().iterator(); it.hasNext();) { for (Iterator<Shader.ShaderSource> it = s.getSources().iterator(); it.hasNext();) {
Shader.ShaderSource source = it.next(); Shader.ShaderSource source = it.next();

Loading…
Cancel
Save