Skip to content

Commit

Permalink
Compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Jones committed May 12, 2011
1 parent e3aef83 commit 57828fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/declarative/scenegraph/qsgdefaultimagenode.cpp
Expand Up @@ -169,6 +169,11 @@ inline static bool isPowerOfTwo(int x)
return x == (x & -x);
}

namespace {
struct X { float x, tx; };
struct Y { float y, ty; };
}

void QSGDefaultImageNode::updateGeometry()
{
const QSGTexture *t = m_material.texture();
Expand Down Expand Up @@ -201,8 +206,6 @@ void QSGDefaultImageNode::updateGeometry()
#endif
m_geometry.allocate(hCells * vCells * 4, hCells * vCells * 6);
m_geometry.setDrawingMode(GL_TRIANGLES);
struct X { float x, tx; };
struct Y { float y, ty; };
QVarLengthArray<X, 32> xData(2 * hCells);
QVarLengthArray<Y, 32> yData(2 * vCells);
X *xs = xData.data();
Expand Down

0 comments on commit 57828fb

Please sign in to comment.