diff --git a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java index 4a55486f6..5a8641b7a 100644 --- a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java +++ b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java @@ -1019,9 +1019,9 @@ public class GLRenderer implements Renderer { return GL.GL_VERTEX_SHADER; case Geometry: return GL3.GL_GEOMETRY_SHADER; - case TesselationControl: + case TessellationControl: return GL4.GL_TESS_CONTROL_SHADER; - case TesselationEvaluation: + case TessellationEvaluation: return GL4.GL_TESS_EVALUATION_SHADER; default: throw new UnsupportedOperationException("Unrecognized shader type."); @@ -2534,6 +2534,8 @@ public class GLRenderer implements Renderer { return GL.GL_TRIANGLE_FAN; case TriangleStrip: return GL.GL_TRIANGLE_STRIP; + case Patch: + return GL4.GL_PATCHES; default: throw new UnsupportedOperationException("Unrecognized mesh mode: " + mode); }