aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-05-12 13:40:02 +1000
committerMartin Jones <martin.jones@nokia.com>2011-05-12 13:40:02 +1000
commit57828fb1c1683bcf2a61c085e6143ce1498e7a78 (patch)
treefab2ed3375216afdd29657da09659e8f9dacc942 /src
parente3aef83de3433b50f4263e9b4d54bb4ed389893c (diff)
Compile.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/scenegraph/qsgdefaultimagenode.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/declarative/scenegraph/qsgdefaultimagenode.cpp b/src/declarative/scenegraph/qsgdefaultimagenode.cpp
index 2d436107bf..972a4cba1e 100644
--- a/src/declarative/scenegraph/qsgdefaultimagenode.cpp
+++ b/src/declarative/scenegraph/qsgdefaultimagenode.cpp
@@ -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();
@@ -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();