diff options
author | Sven Gothel <[email protected]> | 2014-03-25 16:39:18 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-03-25 16:39:18 +0100 |
commit | b078f74cc707e7fc962efde08ab5d9cc6667e27c (patch) | |
tree | 45bf4859811d1be08a027ce0199d0e2ca6a6c6f2 /src/jogl/classes/jogamp/graph/curve/opengl/RegionRendererImpl01.java | |
parent | ec5724493bb9398134553a7354e08497e778a9cb (diff) |
Bug 801: Graph OpenGL ES2 and ES3 Compatibility
- Remove 'const' qualifier in shader graph code for non 'absolute' const values
- Use extension directive OES_standard_derivatives only for ES2.0, not ES3.0 (graph shader)
- Compare float w/ float literals, not int literals!
- Android Demo NEWTGraphUI2pActivity:
- Is a VBAA example, hence disable scene MSAA!
Diffstat (limited to 'src/jogl/classes/jogamp/graph/curve/opengl/RegionRendererImpl01.java')
-rw-r--r-- | src/jogl/classes/jogamp/graph/curve/opengl/RegionRendererImpl01.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/RegionRendererImpl01.java b/src/jogl/classes/jogamp/graph/curve/opengl/RegionRendererImpl01.java index 1288910fb..9a5ed62d8 100644 --- a/src/jogl/classes/jogamp/graph/curve/opengl/RegionRendererImpl01.java +++ b/src/jogl/classes/jogamp/graph/curve/opengl/RegionRendererImpl01.java @@ -69,7 +69,7 @@ public class RegionRendererImpl01 extends RegionRenderer { rsVp.defaultShaderCustomization(gl, true, true); // rsFp.defaultShaderCustomization(gl, true, true); int pos = rsFp.addGLSLVersion(gl); - if( gl.isGLES() ) { + if( gl.isGLES2() && ! gl.isGLES3() ) { pos = rsFp.insertShaderSource(0, pos, ShaderCode.createExtensionDirective(GLExtensions.OES_standard_derivatives, ShaderCode.ENABLE)); } final String rsFpDefPrecision = getFragmentShaderPrecision(gl); |