diff --git a/stepmania/src/BannerCache.cpp b/stepmania/src/BannerCache.cpp index 042e583eb3..fe21f0fb8d 100644 --- a/stepmania/src/BannerCache.cpp +++ b/stepmania/src/BannerCache.cpp @@ -130,7 +130,7 @@ BannerCache::~BannerCache() struct BannerTexture: public RageTexture { unsigned m_uTexHandle; - unsigned GetTexHandle() { return m_uTexHandle; }; // accessed by RageDisplay + unsigned GetTexHandle() const { return m_uTexHandle; }; // accessed by RageDisplay /* This is a reference to a pointer in m_BannerPathToImage. */ SDL_Surface *&img; int width, height; diff --git a/stepmania/src/RageBitmapTexture.h b/stepmania/src/RageBitmapTexture.h index b455d12633..16527cacb1 100644 --- a/stepmania/src/RageBitmapTexture.h +++ b/stepmania/src/RageBitmapTexture.h @@ -23,7 +23,7 @@ public: /* only called by RageTextureManager::InvalidateTextures */ virtual void Invalidate() { m_uTexHandle = 0; /* don't Destroy() */} virtual void Reload(); - virtual unsigned GetTexHandle() { return m_uTexHandle; }; // accessed by RageDisplay + virtual unsigned GetTexHandle() const { return m_uTexHandle; }; // accessed by RageDisplay private: void Create(); // called by constructor and Reload diff --git a/stepmania/src/RageTexture.h b/stepmania/src/RageTexture.h index 808ce95a97..4ca3f8e2e2 100644 --- a/stepmania/src/RageTexture.h +++ b/stepmania/src/RageTexture.h @@ -51,7 +51,7 @@ public: virtual void Update( float fDeltaTime ) {} virtual void Reload() {} virtual void Invalidate() { } /* only called by RageTextureManager::InvalidateTextures */ - virtual unsigned GetTexHandle() = 0; // accessed by RageDisplay + virtual unsigned GetTexHandle() const = 0; // accessed by RageDisplay // movie texture/animated texture stuff virtual void Play() {}