diff options
Diffstat (limited to 'make/config/jogl/gl2_es2-common.cfg')
-rw-r--r-- | make/config/jogl/gl2_es2-common.cfg | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/make/config/jogl/gl2_es2-common.cfg b/make/config/jogl/gl2_es2-common.cfg index 89f30a941..d26c76ead 100644 --- a/make/config/jogl/gl2_es2-common.cfg +++ b/make/config/jogl/gl2_es2-common.cfg @@ -1,22 +1,22 @@ -JavaPrologue glReleaseShaderCompiler if ( !_context.hasNativeES2Methods() ) { +JavaPrologue glReleaseShaderCompiler if ( !_context.isGLES2Compatible() ) { JavaPrologue glReleaseShaderCompiler return; JavaPrologue glReleaseShaderCompiler } -JavaPrologue glShaderBinary if ( !_context.hasNativeES2Methods() ) { +JavaPrologue glShaderBinary if ( !_context.isGLES2Compatible() ) { JavaPrologue glShaderBinary throw new GLException("Method \"glShaderBinary\" not available"); JavaPrologue glShaderBinary } -JavaPrologue glGetShaderPrecisionFormat if ( !_context.hasNativeES2Methods() ) { +JavaPrologue glGetShaderPrecisionFormat if ( !_context.isGLES2Compatible() ) { JavaPrologue glGetShaderPrecisionFormat throw new GLException("Method \"glGetShaderPrecisionFormat\" not available"); JavaPrologue glGetShaderPrecisionFormat } -JavaPrologue glDepthRangef if ( !_context.hasNativeES2Methods() ) { +JavaPrologue glDepthRangef if ( !_context.isGLES2Compatible() ) { JavaPrologue glDepthRangef glDepthRange( (double)zNear, (double)zFar ); JavaPrologue glDepthRangef return; JavaPrologue glDepthRangef } -JavaPrologue glClearDepthf if ( !_context.hasNativeES2Methods() ) { +JavaPrologue glClearDepthf if ( !_context.isGLES2Compatible() ) { JavaPrologue glClearDepthf glClearDepth( (double)depth ); JavaPrologue glClearDepthf return; JavaPrologue glClearDepthf } |