Module: wine Branch: master Commit: 08f8eb29515e3edbe56f290aaffe11aac6980764 URL: https://source.winehq.org/git/wine.git/?a=commit;h=08f8eb29515e3edbe56f290aa...
Author: Stefan Dösinger stefan@codeweavers.com Date: Wed May 25 14:26:54 2022 +0300
wined3d: Handle WINED3DFMT_D32_FLOAT in wined3d_format_convert_from_float.
Signed-off-by: Stefan Dösinger stefan@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;