mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 11:46:34 +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);
|
||||
data += sizeof(uint32);
|
||||
|
||||
_usageType = *(const TextureUsageType*)data;
|
||||
memcpy(&_usageType, data, sizeof(TextureUsageType));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue