From dfca3d5ca0d7a3e11482381e409d992bc25c5a31 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 28 Feb 2015 13:11:59 +0100 Subject: [PATCH] Added GL_PATCHES to convertElementMode --- .../src/main/java/com/jme3/renderer/opengl/GLRenderer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }