Moving some scene files around
This commit is contained in:
@ -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();
|
||||
|
||||
|
@ -127,5 +127,6 @@ void TextureAsset::updateAsync() {
|
||||
TextureAsset::~TextureAsset() {
|
||||
if(this->buffer != nullptr) {
|
||||
memoryFree(this->buffer);
|
||||
this->buffer = nullptr;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user