mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 20:58:38 +02:00
use memcpy on _usageType as well
This commit is contained in:
parent
6a55e67ce9
commit
677c99abd4
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ struct GPUKTXPayload {
|
||||||
_usage = Texture::Usage(usageData);
|
_usage = Texture::Usage(usageData);
|
||||||
data += sizeof(uint32);
|
data += sizeof(uint32);
|
||||||
|
|
||||||
_usageType = *(const TextureUsageType*)data;
|
memcpy(&_usageType, data, sizeof(TextureUsageType));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue