Fixed issue #714.

This commit is contained in:
Branimir Karadžić
2016-03-13 12:13:19 -07:00
parent 5184c6bfa2
commit 56ede30ec0
6 changed files with 27 additions and 14 deletions

View File

@@ -2227,7 +2227,6 @@ namespace bgfx { namespace gl
bx::write(&writer, magic);
TextureCreate tc;
tc.m_flags = texture.m_flags;
tc.m_width = _width;
tc.m_height = _height;
tc.m_sides = 0;
@@ -2239,7 +2238,7 @@ namespace bgfx { namespace gl
bx::write(&writer, tc);
texture.destroy();
texture.create(mem, tc.m_flags, 0);
texture.create(mem, texture.m_flags, 0);
release(mem);
}