You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run my openGL code as a regular activity it runs in OpenGL version 3.0
But when I run the same code under class that extends WallpaperService I get version 1.1
I set setEGLContextClientVersion(2); and also <uses-feature android:glEsVersion="0x20000" android:required="true"/> but it does not seem to do anything.
Checking version using
StringversionString = GLES20.glGetString(GLES20.GL_VERSION);
if (versionString == null) {
versionString = GLES20.glGetString(GLES20.GL_VERSION);
}
if (versionString == null) {
versionString = GLES30.glGetString(GLES30.GL_VERSION);
}
if (versionString == null) {
versionString = GLES31.glGetString(GLES31.GL_VERSION);
}
if (versionString == null) {
versionString = GLES32.glGetString(GLES32.GL_VERSION);
}
if (versionString == null) {
Log.i("version of GLES", "Version didn't found" + versionString);
}
else {
Log.i("version of GLES", "Version is" + versionString);
}
Log.i("version of GLES", "Version is" + versionString);
The text was updated successfully, but these errors were encountered:
When I run my openGL code as a regular activity it runs in OpenGL version 3.0
But when I run the same code under class that extends
WallpaperService
I get version 1.1I set
setEGLContextClientVersion(2);
and also<uses-feature android:glEsVersion="0x20000" android:required="true"/>
but it does not seem to do anything.Checking version using
The text was updated successfully, but these errors were encountered: