Moving some scene files around

This commit is contained in:
2023-07-03 23:05:59 -07:00
parent 71c9f5309b
commit 6de9e3a67f
5 changed files with 29 additions and 5 deletions

View File

@ -78,7 +78,7 @@ size_t AssetLoader::loadRaw(uint8_t **buffer) {
this->rewind();
// Read the string then close the file handle.
*buffer = static_cast<uint8_t *>(malloc(sizeof(uint8_t) * length));
*buffer = static_cast<uint8_t *>(memoryAllocate(sizeof(uint8_t) * length));
read = this->read(*buffer, length);
this->close();

View File

@ -127,5 +127,6 @@ void TextureAsset::updateAsync() {
TextureAsset::~TextureAsset() {
if(this->buffer != nullptr) {
memoryFree(this->buffer);
this->buffer = nullptr;
}
}