mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Fix] (MG_State/TextureObject): fix silly tex input data bug introduced by the refractor
This commit is contained in:
@@ -29,7 +29,7 @@ namespace MobileGL {
|
||||
targetTexelSizes.resize(level + 1);
|
||||
targetTexelSizes[level] = input.texelSize;
|
||||
auto& dirtyArr = m_isDirty[targetIndex];
|
||||
dirtyArr.resize(level + 1, true);
|
||||
dirtyArr.resize(level + 1, false);
|
||||
|
||||
auto& data = targetData[level];
|
||||
data.resize(input.byteSize, 0);
|
||||
@@ -49,7 +49,7 @@ namespace MobileGL {
|
||||
if (input.data && input.size > 0) {
|
||||
const Uint8* src = static_cast<const Uint8*>(input.data);
|
||||
Memcpy(levelData.data(), src, input.size);
|
||||
m_isDirty[targetIndex][level] = false;
|
||||
m_isDirty[targetIndex][level] = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user