Matteo Bruni : d3d10: Get rid of a comment.

Alexandre Julliard julliard at winehq.org
Wed Feb 9 16:03:50 CST 2022


Module: wine
Branch: master
Commit: 812ab92877c14c3411a18c447bdfbcaa2506dd16
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=812ab92877c14c3411a18c447bdfbcaa2506dd16

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Wed Feb  9 16:30:06 2022 +0100

d3d10: Get rid of a comment.

It's become more confusing than helpful I feel like.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d10/effect.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c
index bb105beee6d..78f364d24b6 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -1278,8 +1278,8 @@ static HRESULT parse_fx10_shader(const char *data, size_t data_size, DWORD offse
         return E_FAIL;
     }
 
-    /* We got a shader VertexShader vs = NULL, so it is fine to skip this. */
-    if (!dxbc_size) return S_OK;
+    if (!dxbc_size)
+        return S_OK;
 
     if (FAILED(hr = D3D10ReflectShader(ptr, dxbc_size, &v->u.shader.reflection)))
         return hr;




More information about the wine-cvs mailing list