GPU: upload CPU-written sources before texture region copies
This commit is contained in:
1 parent
8c9373c529
commit
98bb7f59b1
1 file changed
+3
@@ -538,6 +538,9 @@ extern "system" fn copy_texture_region(
|
|||||||
let Some(texture) = crate::resource::host_resource(src.resource) else {
|
let Some(texture) = crate::resource::host_resource(src.resource) else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
if crate::texture::title_written(texture) {
|
||||||
|
crate::texture::upload(list, src.resource, texture);
|
||||||
|
}
|
||||||
ensure_state(list, src.resource, COPY_SOURCE);
|
ensure_state(list, src.resource, COPY_SOURCE);
|
||||||
from.resource = texture.as_raw().cast_const().cast();
|
from.resource = texture.as_raw().cast_const().cast();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user