mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-19 03:16:47 +00:00
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:
parent
499e95a3b1
commit
4f1851abc1
@ -531,6 +531,11 @@ void Thin3DGLTexture::SetImageData(int x, int y, int z, int width, int height, i
|
|||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (level == 0) {
|
||||||
|
width_ = width;
|
||||||
|
height_ = height;
|
||||||
|
depth_ = depth;
|
||||||
|
}
|
||||||
|
|
||||||
Bind();
|
Bind();
|
||||||
switch (target_) {
|
switch (target_) {
|
||||||
|
Loading…
Reference in New Issue
Block a user