Reimplement GLTexture::failed() properly in GLRenderTargetCube
authorBradley T. Hughes <bradley.hughes@nokia.com>
Mon, 31 Oct 2011 13:48:33 +0000 (14:48 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 31 Oct 2011 19:34:43 +0000 (20:34 +0100)
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>
examples/graphicsview/boxes/glbuffers.h

index 1a53fa2..fa3a964 100644 (file)
@@ -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);