Message ID | 20110817091314.22366.7116.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== 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(); }