From 40905061b5fa548dc095196efb5fc6d3532fa048 Mon Sep 17 00:00:00 2001 From: Nehon Date: Thu, 5 Mar 2015 18:49:32 +0100 Subject: [PATCH] Fixed an issue in TechniqueDef due to recent Geom and tesselation shader addition --- .../src/main/java/com/jme3/material/TechniqueDef.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java b/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java index 07bcd930e..e618a046c 100644 --- a/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java +++ b/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java @@ -238,11 +238,11 @@ public class TechniqueDef implements Savable { * @param vertLanguage The vertex shader language * @param fragLanguage The fragment shader language */ - public void setShaderFile(String vertexShader, String fragmentShader, String vertLanguage, String fragLanguage){ - this.shaderLanguage.put(Shader.ShaderType.Vertex,shaderLanguage.get(vertLanguage)); - this.shaderName.put(Shader.ShaderType.Vertex,shaderName.get(vertexShader)); - this.shaderLanguage.put(Shader.ShaderType.Fragment,shaderLanguage.get(fragLanguage)); - this.shaderName.put(Shader.ShaderType.Fragment,shaderName.get(fragmentShader)); + public void setShaderFile(String vertexShader, String fragmentShader, String vertLanguage, String fragLanguage) { + this.shaderLanguage.put(Shader.ShaderType.Vertex, vertLanguage); + this.shaderName.put(Shader.ShaderType.Vertex, vertexShader); + this.shaderLanguage.put(Shader.ShaderType.Fragment, fragLanguage); + this.shaderName.put(Shader.ShaderType.Fragment, fragmentShader); Caps vertCap = Caps.valueOf(vertLanguage); requiredCaps.add(vertCap); Caps fragCap = Caps.valueOf(fragLanguage);