[PATCH v3 3/5] wined3d: Handle WINED3DFMT_D32_FLOAT in wined3d_format_convert_from_float.
Stefan Dösinger
wine at gitlab.winehq.org
Wed May 25 09:18:41 CDT 2022
From: Stefan Dösinger <stefan at codeweavers.com>
Signed-off-by: Stefan Dösinger <stefan at codeweavers.com>
---
dlls/wined3d/utils.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 5c0f1c5e376..21b8d8a0919 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -6133,8 +6133,10 @@ void wined3d_format_convert_from_float(const struct wined3d_format *format,
return;
}
- /* 32 bit float formats. We don't handle D32_FLOAT and D32_FLOAT_S8X24_UINT for now. */
- if ((format->attrs & WINED3D_FORMAT_ATTR_FLOAT) && format->red_size == 32)
+ /* 32 bit float formats. We don't handle D32_FLOAT_S8X24_UINT for now. */
+ if ((format->attrs & WINED3D_FORMAT_ATTR_FLOAT)
+ && (format->red_size == 32 || format->depth_size == 32)
+ && !format->stencil_size)
{
float *ret_f = ret;
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/109
More information about the wine-devel
mailing list