|
|
@ -1019,9 +1019,9 @@ public class GLRenderer implements Renderer { |
|
|
|
return GL.GL_VERTEX_SHADER; |
|
|
|
return GL.GL_VERTEX_SHADER; |
|
|
|
case Geometry: |
|
|
|
case Geometry: |
|
|
|
return GL3.GL_GEOMETRY_SHADER; |
|
|
|
return GL3.GL_GEOMETRY_SHADER; |
|
|
|
case TesselationControl: |
|
|
|
case TessellationControl: |
|
|
|
return GL4.GL_TESS_CONTROL_SHADER; |
|
|
|
return GL4.GL_TESS_CONTROL_SHADER; |
|
|
|
case TesselationEvaluation: |
|
|
|
case TessellationEvaluation: |
|
|
|
return GL4.GL_TESS_EVALUATION_SHADER; |
|
|
|
return GL4.GL_TESS_EVALUATION_SHADER; |
|
|
|
default: |
|
|
|
default: |
|
|
|
throw new UnsupportedOperationException("Unrecognized shader type."); |
|
|
|
throw new UnsupportedOperationException("Unrecognized shader type."); |
|
|
@ -2534,6 +2534,8 @@ public class GLRenderer implements Renderer { |
|
|
|
return GL.GL_TRIANGLE_FAN; |
|
|
|
return GL.GL_TRIANGLE_FAN; |
|
|
|
case TriangleStrip: |
|
|
|
case TriangleStrip: |
|
|
|
return GL.GL_TRIANGLE_STRIP; |
|
|
|
return GL.GL_TRIANGLE_STRIP; |
|
|
|
|
|
|
|
case Patch: |
|
|
|
|
|
|
|
return GL4.GL_PATCHES; |
|
|
|
default: |
|
|
|
default: |
|
|
|
throw new UnsupportedOperationException("Unrecognized mesh mode: " + mode); |
|
|
|
throw new UnsupportedOperationException("Unrecognized mesh mode: " + mode); |
|
|
|
} |
|
|
|
} |
|
|
|