fixed size update bug in glw texture 2D.

This commit is contained in:
Marco Di Benedetto 2012-08-29 23:25:28 +00:00
parent 0ac7034397
commit 34655c22bf
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,11 @@ class Texture2D : public Texture
{
(void)unit;
GLW_ASSERT(this->isValid());
if (level == 0)
{
this->m_width = width;
this->m_height = height;
}
glTexImage2D(target, level, this->m_format, width, height, 0, dataFormat, dataType, data);
}