Add the Open GL ES View errors to the debug log output
This commit is contained in:
parent
8a9a5af00d
commit
5bc849f3f0
|
@ -441,7 +441,7 @@ public class ConfigureFragment extends Fragment {
|
|||
mLogcatProc.getInputStream()));
|
||||
log.append(separator);
|
||||
log.append(separator);
|
||||
log.append("Application ID Output");
|
||||
log.append("Application Output");
|
||||
log.append(separator);
|
||||
log.append(separator);
|
||||
while ((line = reader.readLine()) != null) {
|
||||
|
@ -467,6 +467,22 @@ public class ConfigureFragment extends Fragment {
|
|||
reader.close();
|
||||
mLogcatProc = null;
|
||||
reader = null;
|
||||
mLogcatProc = Runtime.getRuntime().exec(
|
||||
new String[] { "logcat", "-d", "GL2JNIView:E *:S" });
|
||||
reader = new BufferedReader(new InputStreamReader(
|
||||
mLogcatProc.getInputStream()));
|
||||
log.append(separator);
|
||||
log.append(separator);
|
||||
log.append("Open GLES View Output");
|
||||
log.append(separator);
|
||||
log.append(separator);
|
||||
while ((line = reader.readLine()) != null) {
|
||||
log.append(line);
|
||||
log.append(separator);
|
||||
}
|
||||
reader.close();
|
||||
mLogcatProc = null;
|
||||
reader = null;
|
||||
mLogcatProc = Runtime.getRuntime().exec(
|
||||
new String[] { "logcat", "-d", "newdc:V *:S" });
|
||||
reader = new BufferedReader(new InputStreamReader(
|
||||
|
|
|
@ -639,7 +639,7 @@ private static class ContextFactory implements GLSurfaceView.EGLContextFactory
|
|||
{
|
||||
int[] attrList = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL14.EGL_NONE };
|
||||
|
||||
LOGI("Creating OpenGL ES 2.0 context");
|
||||
LOGI("Creating OpenGL ES X context");
|
||||
|
||||
checkEglError("Before eglCreateContext",egl);
|
||||
EGLContext context = egl.eglCreateContext(display,eglConfig,EGL10.EGL_NO_CONTEXT,attrList);
|
||||
|
@ -649,7 +649,7 @@ private static class ContextFactory implements GLSurfaceView.EGLContextFactory
|
|||
|
||||
public void destroyContext(EGL10 egl,EGLDisplay display,EGLContext context)
|
||||
{
|
||||
LOGI("Destroying OpenGL ES 2.0 context");
|
||||
LOGI("Destroying OpenGL ES X context");
|
||||
egl.eglDestroyContext(display,context);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue