diff --git a/yg/base_texture.cpp b/yg/base_texture.cpp index 5544a8662b..4e4cfa915d 100644 --- a/yg/base_texture.cpp +++ b/yg/base_texture.cpp @@ -77,7 +77,7 @@ namespace yg OGLCHECK(glBindTexture(GL_TEXTURE_2D, m_id)); } - int BaseTexture::id() const + unsigned BaseTexture::id() const { return m_id; } diff --git a/yg/base_texture.hpp b/yg/base_texture.hpp index b6ef93f6ef..b86b7f79e8 100644 --- a/yg/base_texture.hpp +++ b/yg/base_texture.hpp @@ -32,7 +32,7 @@ namespace yg unsigned width() const; unsigned height() const; - int id() const; + unsigned id() const; void makeCurrent(); void attachToFrameBuffer(); diff --git a/yg/resource_manager.cpp b/yg/resource_manager.cpp index 244ef6dea9..debb58f271 100644 --- a/yg/resource_manager.cpp +++ b/yg/resource_manager.cpp @@ -64,9 +64,6 @@ namespace yg { shared_ptr t(new TDynamicTexture(dynamicTexWidth, dynamicTexHeight)); m_dynamicTextures.PushBack(t); -#ifdef DEBUG - static_cast(t.get())->randomize(); -#endif } LOG(LINFO, ("allocating ", dynamicTexWidth * dynamicTexHeight * sizeof(TDynamicTexture::pixel_t), " bytes for textures")); @@ -75,9 +72,6 @@ namespace yg { shared_ptr t(new TDynamicTexture(fontTexWidth, fontTexHeight)); m_fontTextures.PushBack(t); -#ifdef DEBUG - static_cast(t.get())->randomize(); -#endif } LOG(LINFO, ("allocating ", fontTexWidth * fontTexHeight * sizeof(TDynamicTexture::pixel_t), " bytes for font textures"));