From patchwork Fri Jan 13 15:52:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alexandros.frantzis@linaro.org X-Patchwork-Id: 6196 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9096F23E14 for ; Fri, 13 Jan 2012 15:52:16 +0000 (UTC) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id 66656A1804D for ; Fri, 13 Jan 2012 15:52:16 +0000 (UTC) Received: by bkbzu5 with SMTP id zu5so2975604bkb.11 for ; Fri, 13 Jan 2012 07:52:16 -0800 (PST) Received: by 10.204.38.80 with SMTP id a16mr658596bke.99.1326469936049; Fri, 13 Jan 2012 07:52:16 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs32921bkc; Fri, 13 Jan 2012 07:52:15 -0800 (PST) Received: by 10.216.134.196 with SMTP id s46mr704246wei.44.1326469934458; Fri, 13 Jan 2012 07:52:14 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id i8si3672798wie.0.2012.01.13.07.52.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Jan 2012 07:52:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RljQM-0001LF-8X for ; Fri, 13 Jan 2012 15:52:14 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 32292E0302 for ; Fri, 13 Jan 2012 15:52:14 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: glmark2 X-Launchpad-Branch: ~glmark2-dev/glmark2/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 183 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [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> Date: Fri, 13 Jan 2012 15:52:14 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14664"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: ff124db96b7475d630575f9b7cf1fd4b178dabea ------------------------------------------------------------ revno: 183 committer: Alexandros Frantzis 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 === 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() {