[PATCH] wined3d: wined3d_check_surface_capability return TRUE for surfaces with WINED3DFMT_FLAG_TEXTURE.
lorenzo Skotos
lorenzofersteam at live.it
Mon Sep 4 11:26:30 CDT 2017
Signed-off-by: Lorenzo Ferrillo <lorenzofersteam at live.it>
---
dlls/wined3d/directx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index e30430a606..3cbab12115 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -5214,7 +5214,7 @@ static BOOL wined3d_check_surface_capability(const struct wined3d_format *format
}
}
- if (format->glInternal)
+ if (format->glInternal || format->flags[WINED3D_GL_RES_TYPE_TEX_2D] & WINED3DFMT_FLAG_TEXTURE)
{
TRACE("[OK]\n");
return TRUE;
@@ -5274,7 +5274,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
{
if (!wined3d_check_surface_capability(format, wined3d->flags & WINED3D_NO3D))
{
- TRACE("[FAILED] - Not supported for plain surfaces.\n");
+ TRACE("[FAILED] - Not supported for plain surfaces. %s \n",debug_d3dformat(check_format_id));
return WINED3DERR_NOTAVAILABLE;
}
--
2.14.1
More information about the wine-patches
mailing list