summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2011-10-31 14:48:33 +0100
committerQt by Nokia <qt-info@nokia.com>2011-10-31 20:34:43 +0100
commite87d1130fb7b023db6e0e535942f7732ee7a3f16 (patch)
treeaf7530400f5cb10989c75831c69cea4f37f36073
parent39b61d2e59684a08c99ac1778231154db782a6b6 (diff)
Reimplement GLTexture::failed() properly in GLRenderTargetCube
The GLRenderTargetCube::failed() method needs to be const. Change-Id: I9bfa031e284b62c86a9be786aea3b851582b71f4 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
-rw-r--r--examples/graphicsview/boxes/glbuffers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/graphicsview/boxes/glbuffers.h b/examples/graphicsview/boxes/glbuffers.h
index 1a53fa2c1a..fa3a964c22 100644
--- a/examples/graphicsview/boxes/glbuffers.h
+++ b/examples/graphicsview/boxes/glbuffers.h
@@ -137,7 +137,7 @@ public:
void begin(int face);
// end rendering
void end();
- virtual bool failed() {return m_failed || m_fbo.failed();}
+ virtual bool failed() const {return m_failed || m_fbo.failed();}
static void getViewMatrix(QMatrix4x4& mat, int face);
static void getProjectionMatrix(QMatrix4x4& mat, float nearZ, float farZ);