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>
This commit is contained in:
Bradley T. Hughes 2011-10-31 14:48:33 +01:00 committed by Qt by Nokia
parent 39b61d2e59
commit e87d1130fb

View 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);