thin3d: Allow setting size in imagedata.

GL should match D3D.  Maybe we don't want this, but then we need to change
the API.
This commit is contained in:
Unknown W. Brackets 2016-02-13 12:20:40 -08:00
parent 499e95a3b1
commit 4f1851abc1

View File

@ -531,6 +531,11 @@ void Thin3DGLTexture::SetImageData(int x, int y, int z, int width, int height, i
default:
return;
}
if (level == 0) {
width_ = width;
height_ = height;
depth_ = depth;
}
Bind();
switch (target_) {