From patchwork Fri Jan 13 15:07: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: 6184 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 C3AB323E01 for ; Fri, 13 Jan 2012 15:07:18 +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 B24A4A18814 for ; Fri, 13 Jan 2012 15:07:18 +0000 (UTC) Received: by mail-bk0-f52.google.com with SMTP id zu5so2927826bkb.11 for ; Fri, 13 Jan 2012 07:07:18 -0800 (PST) Received: by 10.204.41.143 with SMTP id o15mr609918bke.63.1326467238517; Fri, 13 Jan 2012 07:07:18 -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 ac16cs31858bkc; Fri, 13 Jan 2012 07:07:18 -0800 (PST) Received: by 10.216.202.194 with SMTP id d44mr783514weo.1.1326467235453; Fri, 13 Jan 2012 07:07:15 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id d6si5440779wbh.93.2012.01.13.07.07.15 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Jan 2012 07:07:15 -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 1Rliio-0007eT-Ts for ; Fri, 13 Jan 2012 15:07:14 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id D5FA3E042C for ; Fri, 13 Jan 2012 15:07: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: 182 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~glmark2-dev/glmark2/trunk] Rev 182: Android: Reset the rendering state when finishing. Message-Id: <20120113150714.16017.14343.launchpad@ackee.canonical.com> Date: Fri, 13 Jan 2012 15:07: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: 34831877fd1f6f95be2021c7847ca19a20f357b5 ------------------------------------------------------------ revno: 182 committer: Alexandros Frantzis branch nick: trunk timestamp: Fri 2012-01-13 16:11:42 +0200 message: Android: Reset the rendering state when finishing. modified: src/android.cpp --- 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 'src/android.cpp' --- src/android.cpp 2012-01-13 14:05:54 +0000 +++ src/android.cpp 2012-01-13 14:11:42 +0000 @@ -112,6 +112,10 @@ if (benchmarks_run) score /= benchmarks_run; Log::info("glmark2 Score: %u\n", score); + /* Reset the rendering state, in case we get called again */ + bench_iter = g_benchmarks.begin(); + score = 0; + benchmarks_run = 0; return false; } }