diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 124: Properly initialize SceneBump object variables.

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

Commit Message

alexandros.frantzis@linaro.org Aug. 17, 2011, 9:13 a.m. UTC
------------------------------------------------------------
revno: 124
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
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
diff mbox

Patch

=== 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 <cmath>
 
 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();
 }