Added GL_PATCHES to convertElementMode

experimental
michael 10 years ago
parent 19143def9b
commit dfca3d5ca0
  1. 6
      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);
}

Loading…
Cancel
Save