Fix texture packing

This commit is contained in:
luboslenco
2025-11-22 11:28:58 +01:00
parent 19f215457e
commit db28262000
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1570,7 +1570,7 @@ function ui_nodes_capture_output() {
}
}
let pa: packed_asset_t = {name : abs, bytes : gpu_get_texture_pixels(img)};
let pa: packed_asset_t = {name : abs, bytes : iron_encode_png(gpu_get_texture_pixels(img), img.width, img.height, 0)};
array_push(project_raw.packed_assets, pa);
map_set(data_cached_images, abs, img);
import_texture_run(abs);
+1 -1
View File
@@ -117,7 +117,7 @@ function viewport_capture_screenshot() {
}
}
let pa: packed_asset_t = {name : abs, bytes : gpu_get_texture_pixels(screenshot)};
let pa: packed_asset_t = {name : abs, bytes : iron_encode_png(gpu_get_texture_pixels(screenshot), screenshot.width, screenshot.height, 0)};
array_push(project_raw.packed_assets, pa);
map_set(data_cached_images, abs, screenshot);
import_texture_run(abs);