blob: 866fbc7ae41cd802cb210ab7f481f0a71c34d155 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
public final boolean matchesProfile() {
return matchesProfile(GLProfile.getProfile());
}
public final boolean matchesProfile(String test_profile) {
if(null==test_profile) {
return false;
}
if(test_profile.equals(GLProfile.GL2)) {
return isGL2();
}
if(test_profile.equals(GLProfile.GLES1)) {
return isGLES1();
}
if(test_profile.equals(GLProfile.GLES2)) {
return isGLES2();
}
return false;
}
|