summaryrefslogtreecommitdiff
path: root/src/util/asset_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/asset_manager.cc')
-rw-r--r--src/util/asset_manager.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/asset_manager.cc b/src/util/asset_manager.cc
index 6cad083..1c02626 100644
--- a/src/util/asset_manager.cc
+++ b/src/util/asset_manager.cc
@@ -78,7 +78,8 @@ const uint8_t* GetAsset(AssetId asset_id, size_t* out_size) {
#if !defined(DEMO_STRIP_ALL)
if (source_record.type == AssetType::SPEC ||
- source_record.type == AssetType::MP3) {
+ source_record.type == AssetType::MP3 ||
+ source_record.type == AssetType::WGSL) {
const char* path = (const char*)source_record.data;
FILE* f = fopen(path, "rb");
if (!f) {
@@ -224,7 +225,8 @@ void DropAsset(AssetId asset_id, const uint8_t* asset) {
#if !defined(DEMO_STRIP_ALL)
if (g_asset_cache[index].data == asset &&
(g_asset_cache[index].type == AssetType::SPEC ||
- g_asset_cache[index].type == AssetType::MP3)) {
+ g_asset_cache[index].type == AssetType::MP3 ||
+ g_asset_cache[index].type == AssetType::WGSL)) {
delete[] g_asset_cache[index].data;
g_asset_cache[index] = {};
}