forked from organicmaps/organicmaps
removed dynamic texture randomizing upon allocation in _DEBUG mode. fixed BaseTexture::id return value.
This commit is contained in:
parent
dee5dc3e71
commit
9279d8c3a7
3 changed files with 2 additions and 8 deletions
|
@ -77,7 +77,7 @@ namespace yg
|
|||
OGLCHECK(glBindTexture(GL_TEXTURE_2D, m_id));
|
||||
}
|
||||
|
||||
int BaseTexture::id() const
|
||||
unsigned BaseTexture::id() const
|
||||
{
|
||||
return m_id;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace yg
|
|||
unsigned width() const;
|
||||
unsigned height() const;
|
||||
|
||||
int id() const;
|
||||
unsigned id() const;
|
||||
void makeCurrent();
|
||||
void attachToFrameBuffer();
|
||||
|
||||
|
|
|
@ -64,9 +64,6 @@ namespace yg
|
|||
{
|
||||
shared_ptr<gl::BaseTexture> t(new TDynamicTexture(dynamicTexWidth, dynamicTexHeight));
|
||||
m_dynamicTextures.PushBack(t);
|
||||
#ifdef DEBUG
|
||||
static_cast<TDynamicTexture*>(t.get())->randomize();
|
||||
#endif
|
||||
}
|
||||
|
||||
LOG(LINFO, ("allocating ", dynamicTexWidth * dynamicTexHeight * sizeof(TDynamicTexture::pixel_t), " bytes for textures"));
|
||||
|
@ -75,9 +72,6 @@ namespace yg
|
|||
{
|
||||
shared_ptr<gl::BaseTexture> t(new TDynamicTexture(fontTexWidth, fontTexHeight));
|
||||
m_fontTextures.PushBack(t);
|
||||
#ifdef DEBUG
|
||||
static_cast<TDynamicTexture*>(t.get())->randomize();
|
||||
#endif
|
||||
}
|
||||
|
||||
LOG(LINFO, ("allocating ", fontTexWidth * fontTexHeight * sizeof(TDynamicTexture::pixel_t), " bytes for font textures"));
|
||||
|
|
Loading…
Add table
Reference in a new issue