aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/textureprovider/etcprovider.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@live.com>2013-02-14 21:18:59 -0600
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-15 14:38:00 +0100
commit42f230fb9bc04d32774f05e9358604720662490a (patch)
treed23495a9f4f1a7557ba40938cddbb9fadf9db506 /examples/quick/textureprovider/etcprovider.h
parent5e6b2bf68b2338ad9424b48193b860a70addd022 (diff)
Ensure EtcTexture always provides a valid textureId.
Change-Id: I1e7e8095593838f0fc1d78d1cb5a146787f748a7 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'examples/quick/textureprovider/etcprovider.h')
-rw-r--r--examples/quick/textureprovider/etcprovider.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/quick/textureprovider/etcprovider.h b/examples/quick/textureprovider/etcprovider.h
index 08418f8b4b..24570e90e9 100644
--- a/examples/quick/textureprovider/etcprovider.h
+++ b/examples/quick/textureprovider/etcprovider.h
@@ -67,7 +67,7 @@ public:
void bind();
QSize textureSize() const { return m_size; }
- int textureId() const { return m_texture_id; }
+ int textureId() const;
bool hasAlphaChannel() const { return false; }
bool hasMipmaps() const { return false; }
@@ -76,6 +76,7 @@ public:
QSize m_size;
QSize m_paddedSize;
GLuint m_texture_id;
+ bool m_uploaded;
};
#endif // ETCPROVIDER_H