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
This commit is contained in:
parent
aec78ea21f
commit
1112b380d2
@ -160,7 +160,7 @@ public class JoglRenderer implements Renderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String versionStr = null;
|
String versionStr = null;
|
||||||
if (caps.contains(Caps.OpenGL20)) {
|
if (caps.contains(Caps.OpenGL20) || gl.isGL2ES2()) {
|
||||||
versionStr = gl.glGetString(GL2ES2.GL_SHADING_LANGUAGE_VERSION);
|
versionStr = gl.glGetString(GL2ES2.GL_SHADING_LANGUAGE_VERSION);
|
||||||
}
|
}
|
||||||
if (versionStr == null || versionStr.equals("")) {
|
if (versionStr == null || versionStr.equals("")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user