-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix issues in GLES backends #2584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -201,6 +201,8 @@ private JmeIosGLES() { | |||||||||||||||||||||||||
| public static native String glGetShaderInfoLog(int shader); | ||||||||||||||||||||||||||
| public static native void glGetShaderiv(int shader, int pname, int[] params, int offset); | ||||||||||||||||||||||||||
| public static native String glGetString(int name); | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| public static native String glGetStringi(int name, int index); | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| public static native String glGetStringi(int name, int index); | |
| public static String glGetStringi(int name, int index) { | |
| String combined = glGetString(name); | |
| if (combined == null) { | |
| return null; | |
| } | |
| String[] parts = combined.split(" "); | |
| if (index < 0 || index >= parts.length) { | |
| throw new IllegalArgumentException("glGetStringi: index " + index + " out of range (0.." + (parts.length - 1) + ")"); | |
| } | |
| return parts[index]; | |
| } |
Uh oh!
There was an error while loading. Please reload this page.