From 1112b380d2a387ecbbd86d6c9e3a19da006b093b Mon Sep 17 00:00:00 2001 From: "jul..om" Date: Fri, 1 Feb 2013 22:06:43 +0000 Subject: [PATCH] Improves OpenGL-ES support (especially for Raspberry Pi), contribution of Erkki Nokso-Koivisto, fetches the GLSL version correctly when using ES2 git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10300 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java b/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java index 76edcef57..ae2ab1f02 100644 --- a/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java +++ b/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java @@ -160,7 +160,7 @@ public class JoglRenderer implements Renderer { } String versionStr = null; - if (caps.contains(Caps.OpenGL20)) { + if (caps.contains(Caps.OpenGL20) || gl.isGL2ES2()) { versionStr = gl.glGetString(GL2ES2.GL_SHADING_LANGUAGE_VERSION); } if (versionStr == null || versionStr.equals("")) {