diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 183: Android: Log an error message if we are unable to find a suitable EGLConfig.

Message ID 20120113155214.27088.91964.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org Jan. 13, 2012, 3:52 p.m. UTC
------------------------------------------------------------
revno: 183
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
branch nick: trunk
timestamp: Fri 2012-01-13 17:50:38 +0200
message:
  Android: Log an error message if we are unable to find a suitable EGLConfig.
modified:
  android/src/org/linaro/glmark2/Glmark2SurfaceView.java


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'android/src/org/linaro/glmark2/Glmark2SurfaceView.java'
--- android/src/org/linaro/glmark2/Glmark2SurfaceView.java	2011-10-26 11:12:19 +0000
+++ android/src/org/linaro/glmark2/Glmark2SurfaceView.java	2012-01-13 15:50:38 +0000
@@ -5,6 +5,7 @@ 
 import android.opengl.GLSurfaceView;
 import android.content.res.AssetManager;
 import android.app.Activity;
+import android.util.Log;
 
 import javax.microedition.khronos.egl.EGL10;
 import javax.microedition.khronos.egl.EGLDisplay;
@@ -13,6 +14,8 @@ 
 
 class Glmark2SurfaceView extends GLSurfaceView {
 
+    public static final String LOG_TAG = "glmark2";
+
     public Glmark2SurfaceView(Activity activity) {
         super(activity);
         mActivity = activity;
@@ -60,6 +63,8 @@ 
                 return chooseConfigInternal(egl, display);
             }
             catch (Exception e) {
+                /* Log an error message */
+                Log.e(LOG_TAG, "No suitable EGLConfig for GLES2.0 found. Please check that proper GLES2.0 drivers are installed.");
                 /* Display an informative (and lethal for the app) dialog */
                 mActivity.runOnUiThread(new Runnable() {
                     public void run() {