android - createContext failed: EGL_SUCCESS -
the log says
java.lang.runtimeexception: createcontext failed: egl_success @ android.opengl.glsurfaceview$eglhelper.throweglexception(glsurfaceview.java:1193) @ android.opengl.glsurfaceview$eglhelper.throweglexception(glsurfaceview.java:1184) @ android.opengl.glsurfaceview$eglhelper.start(glsurfaceview.java:1034) @ android.opengl.glsurfaceview$glthread.guardedrun(glsurfaceview.java:1401) @ android.opengl.glsurfaceview$glthread.run(glsurfaceview.java:1240)
when try use rajawali library on android studio. found out problem must device-capability-specific, because app runs on other devices (samsung galaxy tab 4, nexus) not on sony xperia lt30p. have looked around , have found this thread talking same problem. thought might problem of ram or overflowing, disabled background processes , uninstalled apps. still, error persists. know why happens , if there exists way around it?
maybe because config call order wrong..
seteglconfigchooser(8, 8, 8, 8, 16, 0); seteglcontextclientversion(2); getholder().setformat(pixelformat.translucent);
and right order is:
seteglcontextclientversion(2); seteglconfigchooser(8, 8, 8, 8, 16, 0); getholder().setformat(pixelformat.translucent);
but using wrong order, code still correct in of phones.(i met error @ 4.2.1 phone)
Comments
Post a Comment