diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 20: Initialize scene variables properly.

Message ID 20110721123631.17019.52524.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

Alexandros Frantzis July 21, 2011, 12:36 p.m. UTC
------------------------------------------------------------
revno: 20
committer: Alexandros Frantzis <alf82@freemail.gr>
timestamp: Thu 2010-07-08 16:34:28 +0300
message:
  Initialize scene variables properly.
modified:
  scenebuild.cpp
  sceneshading.cpp
  scenetexture.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 'scenebuild.cpp'
--- scenebuild.cpp	2010-07-08 12:52:27 +0000
+++ scenebuild.cpp	2010-07-08 13:34:28 +0000
@@ -13,6 +13,7 @@ 
     mMesh.build_vbo();
 
     mRotationSpeed = 36.0f;
+    mRotation = 0.0;
     
     mRunning = false;
     
@@ -28,6 +29,8 @@ 
     
     mPartDuration[0] = 10.0;
     mPartDuration[1] = 10.0;
+
+    memset(mAverageFPS, 0, mPartsQty * sizeof(*mAverageFPS));
     
     mCurrentPart = 0;
     

=== modified file 'sceneshading.cpp'
--- sceneshading.cpp	2010-07-08 10:29:59 +0000
+++ sceneshading.cpp	2010-07-08 13:34:28 +0000
@@ -38,6 +38,8 @@ 
     
     mPartDuration[0] = 10.0;
     mPartDuration[1] = 10.0;
+
+    memset(mAverageFPS, 0, mPartsQty * sizeof(*mAverageFPS));
     
     mCurrentPart = 0;
     

=== modified file 'scenetexture.cpp'
--- scenetexture.cpp	2010-07-08 10:29:59 +0000
+++ scenetexture.cpp	2010-07-08 13:34:28 +0000
@@ -39,6 +39,8 @@ 
     mPartDuration[1] = 10.0;
     mPartDuration[2] = 10.0;
     
+    memset(mAverageFPS, 0, mPartsQty * sizeof(*mAverageFPS));
+
     mCurrentPart = 0;
     
     return 1;