mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
wined3d-1DTextures: 0006,0007,0008 fix compiling-2
This commit is contained in:
parent
0fb2bacdac
commit
5978ff107d
@ -55,7 +55,7 @@ index 90c18e8..93b41e9 100644
|
||||
+ update_w = box->right - box->left;
|
||||
+ }
|
||||
+
|
||||
+ if (format->convert)
|
||||
+ if (format->upload)
|
||||
+ {
|
||||
+ unsigned int dst_row_pitch;
|
||||
+
|
||||
@ -67,7 +67,7 @@ index 90c18e8..93b41e9 100644
|
||||
+ dst_row_pitch = update_w * format->conv_byte_count;
|
||||
+
|
||||
+ converted_mem = HeapAlloc(GetProcessHeap(), 0, dst_row_pitch);
|
||||
+ format->convert(data->addr, converted_mem, row_pitch, slice_pitch, dst_row_pitch, dst_row_pitch, update_w, 1, 1);
|
||||
+ format->upload(data->addr, converted_mem, row_pitch, slice_pitch, dst_row_pitch, dst_row_pitch, update_w, 1, 1);
|
||||
+ mem = converted_mem;
|
||||
+ }
|
||||
+
|
||||
|
@ -33,10 +33,10 @@ index 93b41e9..c5a4f0c 100644
|
||||
+ return TRUE;
|
||||
+ }
|
||||
+
|
||||
+ if ((texture->resource.access_flags & required_access) != required_access)
|
||||
+ if ((texture->resource.access & required_access) != required_access)
|
||||
+ {
|
||||
+ ERR("Operation requires %#x access, but 1d texture only has %#x.\n",
|
||||
+ required_access, texture->resource.access_flags);
|
||||
+ required_access, texture->resource.access);
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+
|
||||
|
@ -28,7 +28,7 @@ index c5a4f0c..198d2a6 100644
|
||||
+
|
||||
+ sub_resource = &texture->sub_resources[sub_resource_idx];
|
||||
+
|
||||
+ if (format->convert)
|
||||
+ if (format->upload)
|
||||
+ {
|
||||
+ FIXME("Attempting to download a converted 1d texture, format %s.\n",
|
||||
+ debug_d3dformat(format->id));
|
||||
|
Loading…
x
Reference in New Issue
Block a user