From e87d1130fb7b023db6e0e535942f7732ee7a3f16 Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Mon, 31 Oct 2011 14:48:33 +0100 Subject: [PATCH] Reimplement GLTexture::failed() properly in GLRenderTargetCube MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GLRenderTargetCube::failed() method needs to be const. Change-Id: I9bfa031e284b62c86a9be786aea3b851582b71f4 Reviewed-by: Casper van Donderen Reviewed-by: Jørgen Lind --- examples/graphicsview/boxes/glbuffers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);