From patchwork Wed Aug 17 09:13:14 2011 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: 3481 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 243BE23F41 for ; Wed, 17 Aug 2011 09:18:17 +0000 (UTC) Received: from mail-ey0-f170.google.com (mail-ey0-f170.google.com [209.85.215.170]) by fiordland.canonical.com (Postfix) with ESMTP id 3ADF7A1865A for ; Wed, 17 Aug 2011 09:18:17 +0000 (UTC) Received: by eyd10 with SMTP id 10so618724eyd.29 for ; Wed, 17 Aug 2011 02:18:17 -0700 (PDT) Received: by 10.213.14.67 with SMTP id f3mr1153883eba.56.1313572696859; Wed, 17 Aug 2011 02:18:16 -0700 (PDT) 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.213.102.5 with SMTP id e5cs6593ebo; Wed, 17 Aug 2011 02:18:16 -0700 (PDT) Received: from mr.google.com ([10.227.42.34]) by 10.227.42.34 with SMTP id q34mr900636wbe.83.1313572696667 (num_hops = 1); Wed, 17 Aug 2011 02:18:16 -0700 (PDT) Received: by 10.227.42.34 with SMTP id q34mr633916wbe.83.1313572696297; Wed, 17 Aug 2011 02:18:16 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com [91.189.90.7]) by mx.google.com with ESMTPS id b5si2460426wbh.29.2011.08.17.02.18.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Aug 2011 02:18:16 -0700 (PDT) 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 1QtcGN-0005ut-8b for ; Wed, 17 Aug 2011 09:18:15 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id D8459E1725 for ; Wed, 17 Aug 2011 09:13: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: 124 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~glmark2-dev/glmark2/trunk] Rev 124: Properly initialize SceneBump object variables. Message-Id: <20110817091314.22366.7116.launchpad@ackee.canonical.com> Date: Wed, 17 Aug 2011 09:13: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="13697"; Instance="initZopeless config overlay" X-Launchpad-Hash: ff043fa02b2ff9dcf7b340d9a7c360e2ccb92d44 ------------------------------------------------------------ revno: 124 committer: Alexandros Frantzis branch nick: trunk timestamp: Wed 2011-08-17 12:10:47 +0300 message: Properly initialize SceneBump object variables. modified: src/scene-bump.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/scene-bump.cpp' --- src/scene-bump.cpp 2011-07-28 08:44:31 +0000 +++ src/scene-bump.cpp 2011-08-17 09:10:47 +0000 @@ -27,7 +27,8 @@ #include SceneBump::SceneBump(Canvas &pCanvas) : - Scene(pCanvas, "bump") + Scene(pCanvas, "bump"), + mTexture(0), mRotation(0.0f), mRotationSpeed(0.0f) { mOptions["bump-render"] = Scene::Option("bump-render", "off", "How to render bumps [off, normals, high-poly]"); @@ -186,6 +187,7 @@ mProgram.release(); glDeleteTextures(1, &mTexture); + mTexture = 0; Scene::teardown(); }