[PATCH] wined3d: Don't fail if a vertex attribute is not 4 byte aligned.

Jan Sikorski jsikorski at codeweavers.com
Thu Feb 4 08:37:32 CST 2021


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43422
Signed-off-by: Jan Sikorski <jsikorski at codeweavers.com>
---
 dlls/wined3d/vertexdeclaration.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dlls/wined3d/vertexdeclaration.c b/dlls/wined3d/vertexdeclaration.c
index c5df45541e4..7a099054372 100644
--- a/dlls/wined3d/vertexdeclaration.c
+++ b/dlls/wined3d/vertexdeclaration.c
@@ -246,11 +246,7 @@ static HRESULT vertexdeclaration_init(struct wined3d_vertex_declaration *declara
         }
 
         if (e->offset & 0x3)
-        {
-            WARN("Declaration element %u is not 4 byte aligned(%u), returning E_FAIL.\n", i, e->offset);
-            heap_free(declaration->elements);
-            return E_FAIL;
-        }
+            WARN("Declaration element %u is not 4 byte aligned(%u).\n", i, e->offset);
     }
 
     return WINED3D_OK;
-- 
2.30.0




More information about the wine-devel mailing list