GPU: upload CPU-written textures before CopyResource

This commit is contained in:
fuzeofficial committed 2026-11-24 15:30:02 +09:00
1 parent d2a4bae1f4
commit 0064c088d2
1 file changed
+3
+3
View File
@@ -446,6 +446,9 @@ extern "system" fn copy_resource(this: This, dst: This, src: This) {
crate::resource::host_resource(dst),
crate::resource::host_resource(src),
) {
if crate::texture::title_written(from) {
crate::texture::upload(list, src, from);
}
ensure_state(list, dst, COPY_DEST);
ensure_state(list, src, COPY_SOURCE);
crate::texture::host_written(dst);