From: Bradley T. Hughes Date: Mon, 31 Oct 2011 13:48:33 +0000 (+0100) Subject: Reimplement GLTexture::failed() properly in GLRenderTargetCube X-Git-Tag: qt-v5.0.0-alpha1~2956 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e87d1130fb7b023db6e0e535942f7732ee7a3f16;p=profile%2Fivi%2Fqtbase.git Reimplement GLTexture::failed() properly in GLRenderTargetCube The GLRenderTargetCube::failed() method needs to be const. Change-Id: I9bfa031e284b62c86a9be786aea3b851582b71f4 Reviewed-by: Casper van Donderen Reviewed-by: Jørgen Lind --- diff --git a/examples/graphicsview/boxes/glbuffers.h b/examples/graphicsview/boxes/glbuffers.h index 1a53fa2..fa3a964 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);