Valentin Gabriel Mitrea : d3dx9: Fix D3DCompile() call.

Alexandre Julliard julliard at winehq.org
Tue Apr 24 18:46:09 CDT 2018


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

Author: Valentin Gabriel Mitrea <mitrea.valentin at gmail.com>
Date:   Tue Apr 24 18:20:45 2018 +0300

d3dx9: Fix D3DCompile() call.

When using D3DCompile() with an fx profile, the entry point
parameter is not used. So, it should be set to NULL.

Signed-off-by: Valentin Gabriel Mitrea <mitrea.valentin at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dx9_36/effect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c
index 94f7b07..33197de 100644
--- a/dlls/d3dx9_36/effect.c
+++ b/dlls/d3dx9_36/effect.c
@@ -6590,7 +6590,7 @@ static HRESULT d3dx9_base_effect_init(struct d3dx9_base_effect *base,
     {
         TRACE("HLSL ASCII effect, trying to compile it.\n");
         hr = D3DCompile(data, data_size, NULL, defines, include,
-                "main", "fx_2_0", compile_flags, eflags, &bytecode, &temp_errors);
+                NULL, "fx_2_0", compile_flags, eflags, &bytecode, &temp_errors);
         if (FAILED(hr))
         {
             WARN("Failed to compile ASCII effect.\n");




More information about the wine-cvs mailing list