diff options
author | Sven Gothel <[email protected]> | 2013-05-17 04:52:32 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-05-17 04:52:32 +0200 |
commit | 33abeb8097a8f80acd1a4ce94b4866e5dc41f0c0 (patch) | |
tree | 263bfc8987a159bec0f4d1cfec2427f6a5660189 /src/jogl/classes/jogamp/opengl/GLContextImpl.java | |
parent | 31e72d2f2d953352b2a8c83368039ecca8139d49 (diff) |
Fix Bug 737: Add shader default precision for GLSL [1.30 .. 1.50[ - See GLSL Spec [1.30 - 1.40].
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLContextImpl.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLContextImpl.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLContextImpl.java b/src/jogl/classes/jogamp/opengl/GLContextImpl.java index f16834d28..8c9c12e21 100644 --- a/src/jogl/classes/jogamp/opengl/GLContextImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLContextImpl.java @@ -1056,9 +1056,7 @@ public abstract class GLContextImpl extends GLContext { } } if( ctxGLSLVersion.isZero() ) { - final int[] sver = new int[2]; - getStaticGLSLVersionNumber(major, minor, ctxOptions, sver); - ctxGLSLVersion = new VersionNumber(sver[0], sver[1], 0); + ctxGLSLVersion = getStaticGLSLVersionNumber(major, minor, ctxOptions); } } } |