GPU: upload CPU-written textures before CopyResource
This commit is contained in:
1 parent
d2a4bae1f4
commit
0064c088d2
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user