GPU: upload CPU-written sources before texture region copies

This commit is contained in:
fuzeofficial committed 2026-11-24 15:56:38 +09:00
1 parent 0064c088d2
commit 4f53d6f1f3
1 file changed
+3
+3
View File
@@ -538,6 +538,9 @@ extern "system" fn copy_texture_region(
let Some(texture) = crate::resource::host_resource(src.resource) else {
return;
};
if crate::texture::title_written(texture) {
crate::texture::upload(list, src.resource, texture);
}
ensure_state(list, src.resource, COPY_SOURCE);
from.resource = texture.as_raw().cast_const().cast();
}