fixed size update bug in glw texture 2D.
This commit is contained in:
parent
0ac7034397
commit
34655c22bf
|
|
@ -75,6 +75,11 @@ class Texture2D : public Texture
|
||||||
{
|
{
|
||||||
(void)unit;
|
(void)unit;
|
||||||
GLW_ASSERT(this->isValid());
|
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);
|
glTexImage2D(target, level, this->m_format, width, height, 0, dataFormat, dataType, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue