diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 122: Remove useless statement from SceneGrid::setup().

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

Commit Message

alexandros.frantzis@linaro.org Aug. 11, 2011, 8:59 a.m. UTC
------------------------------------------------------------
revno: 122
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
branch nick: trunk
timestamp: Thu 2011-08-11 11:57:47 +0300
message:
  Remove useless statement from SceneGrid::setup().
  
  The mProgram object hasn't been initialized at this point, so there is no point
  using it to get the index of a vertex attribute. The attrib locations for
  the mMesh object are set by the ::setup() method in the classes inheriting
  from SceneGrid.
modified:
  src/scene-grid.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-grid.cpp'
--- src/scene-grid.cpp	2011-07-07 13:35:24 +0000
+++ src/scene-grid.cpp	2011-08-11 08:57:47 +0000
@@ -82,10 +82,6 @@ 
                     grid_size > 1 ? spacing : 0);
     mMesh.build_vbo();
 
-    std::vector<GLint> attrib_locations;
-    attrib_locations.push_back(mProgram.getAttribIndex("position"));
-    mMesh.set_attrib_locations(attrib_locations);
-
     mCurrentFrame = 0;
     mRotation = 0.0f;
 }