Skip to content

Commit

Permalink
ShaderCode: Fix [ -> ] typo in javadoc and comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
xranby committed Aug 10, 2015
1 parent 217d8b7 commit 93753f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ public final int addDefaultShaderPrecision(final GL2ES2 gl, int pos) {
break;
}
} else if( requiresGL3DefaultPrecision(gl) ) {
// GLSL [ 1.30 .. 1.50 [ needs at least fragement float default precision!
// GLSL [ 1.30 .. 1.50 ] needs at least fragement float default precision!
switch ( shaderType ) {
case GL2ES2.GL_VERTEX_SHADER:
case GL3.GL_GEOMETRY_SHADER:
Expand All @@ -1321,15 +1321,15 @@ public final int addDefaultShaderPrecision(final GL2ES2 gl, int pos) {
return pos;
}

/** Returns true, if GLSL version requires default precision, i.e. ES2 or GLSL [1.30 .. 1.50[. */
/** Returns true, if GLSL version requires default precision, i.e. ES2 or GLSL [1.30 .. 1.50]. */
public static final boolean requiresDefaultPrecision(final GL2ES2 gl) {
if( gl.isGLES() ) {
return true;
}
return requiresGL3DefaultPrecision(gl);
}

/** Returns true, if GL3 GLSL version requires default precision, i.e. GLSL [1.30 .. 1.50[. */
/** Returns true, if GL3 GLSL version requires default precision, i.e. GLSL [1.30 .. 1.50]. */
public static final boolean requiresGL3DefaultPrecision(final GL2ES2 gl) {
if( gl.isGL3() ) {
final VersionNumber glslVersion = gl.getContext().getGLSLVersionNumber();
Expand Down

0 comments on commit 93753f2

Please sign in to comment.