Zebediah Figura : wined3d: Create buffers with a format of WINED3DFMT_R8_UNORM.
Alexandre Julliard
julliard at winehq.org
Tue Jun 29 15:58:26 CDT 2021
Module: wine
Branch: master
Commit: 447a748c512ea94034a03f58b6bb4f8ba7af845e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=447a748c512ea94034a03f58b6bb4f8ba7af845e
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Mon Jun 28 11:39:01 2021 -0500
wined3d: Create buffers with a format of WINED3DFMT_R8_UNORM.
Allow things like wined3d_format_copy_data() to work on them.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/buffer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index 00d219a49f2..0511f278144 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -849,7 +849,7 @@ static HRESULT buffer_resource_sub_resource_get_desc(struct wined3d_resource *re
return E_INVALIDARG;
}
- desc->format = WINED3DFMT_UNKNOWN;
+ desc->format = WINED3DFMT_R8_UNORM;
desc->multisample_type = WINED3D_MULTISAMPLE_NONE;
desc->multisample_quality = 0;
desc->usage = resource->usage;
@@ -1156,7 +1156,7 @@ static HRESULT wined3d_buffer_init(struct wined3d_buffer *buffer, struct wined3d
const struct wined3d_buffer_desc *desc, const struct wined3d_sub_resource_data *data,
void *parent, const struct wined3d_parent_ops *parent_ops, const struct wined3d_buffer_ops *buffer_ops)
{
- const struct wined3d_format *format = wined3d_get_format(device->adapter, WINED3DFMT_UNKNOWN, desc->bind_flags);
+ const struct wined3d_format *format = wined3d_get_format(device->adapter, WINED3DFMT_R8_UNORM, desc->bind_flags);
struct wined3d_resource *resource = &buffer->resource;
HRESULT hr;
More information about the wine-cvs
mailing list