https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b2df33e579ba7b8ccf9cfc63461357100220ad81

commit b2df33e579ba7b8ccf9cfc63461357100220ad81
Author:     winesync <[email protected]>
AuthorDate: Mon Sep 21 22:50:18 2020 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Thu Feb 4 16:37:03 2021 +0100

    [WINESYNC] d3dx9: Move flags out of struct d3dx9_base_effect.
    
    Signed-off-by: Michael Stefaniuc <[email protected]>
    Signed-off-by: Matteo Bruni <[email protected]>
    Signed-off-by: Alexandre Julliard <[email protected]>
    
    wine commit id 7f16670edc3ed5c8ab5bdd88e88a00f8ba1853dc by Michael 
Stefaniuc <[email protected]>
---
 dll/directx/wine/d3dx9_36/effect.c | 11 +++++------
 sdk/tools/winesync/d3dx9.cfg       |  2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/dll/directx/wine/d3dx9_36/effect.c 
b/dll/directx/wine/d3dx9_36/effect.c
index 69c078d2dee..bfd9d5a4048 100644
--- a/dll/directx/wine/d3dx9_36/effect.c
+++ b/dll/directx/wine/d3dx9_36/effect.c
@@ -156,7 +156,6 @@ struct d3dx9_base_effect
 {
     struct d3dx_effect *effect;
 
-    DWORD flags;
 
     ULONG64 version_counter;
 };
@@ -173,6 +172,7 @@ struct d3dx_effect
     struct d3dx_top_level_parameter *parameters;
     struct d3dx_technique *techniques;
     struct d3dx_object *objects;
+    DWORD flags;
     struct wine_rb_tree param_tree;
     char *full_name_tmp;
     unsigned int full_name_tmp_size;
@@ -507,8 +507,7 @@ static struct d3dx_parameter *get_valid_parameter(struct 
d3dx_effect *effect, D3
             sizeof(parameter_magic_string)))
         return handle_param;
 
-    return effect->base_effect.flags & D3DXFX_LARGEADDRESSAWARE
-                ? NULL : get_parameter_by_name(effect, NULL, parameter);
+    return effect->flags & D3DXFX_LARGEADDRESSAWARE ? NULL : 
get_parameter_by_name(effect, NULL, parameter);
 }
 
 static void free_state(struct d3dx_state *state)
@@ -1918,7 +1917,7 @@ static HRESULT WINAPI d3dx_effect_GetPassDesc(ID3DXEffect 
*iface, D3DXHANDLE pas
     desc->pVertexShaderFunction = NULL;
     desc->pPixelShaderFunction = NULL;
 
-    if (effect->base_effect.flags & D3DXFX_NOT_CLONEABLE)
+    if (effect->flags & D3DXFX_NOT_CLONEABLE)
         return D3D_OK;
 
     for (i = 0; i < pass->state_count; ++i)
@@ -4101,7 +4100,7 @@ static HRESULT WINAPI d3dx_effect_CloneEffect(ID3DXEffect 
*iface, IDirect3DDevic
     if (!new_effect)
         return D3DERR_INVALIDCALL;
 
-    if (effect->base_effect.flags & D3DXFX_NOT_CLONEABLE)
+    if (effect->flags & D3DXFX_NOT_CLONEABLE)
         return E_FAIL;
 
     if (!device)
@@ -6185,7 +6184,7 @@ static HRESULT d3dx9_effect_init(struct d3dx_effect 
*effect, struct IDirect3DDev
     effect->device = device;
 
     base->effect = effect;
-    base->flags = eflags;
+    effect->flags = eflags;
 
     read_dword(&ptr, &tag);
     TRACE("Tag: %x\n", tag);
diff --git a/sdk/tools/winesync/d3dx9.cfg b/sdk/tools/winesync/d3dx9.cfg
index 50683c00a48..e5844e9ca1f 100644
--- a/sdk/tools/winesync/d3dx9.cfg
+++ b/sdk/tools/winesync/d3dx9.cfg
@@ -15,4 +15,4 @@ files: {include/d3dx9.h: sdk/include/dxsdk/d3dx9.h, 
include/d3dx9anim.h: sdk/inc
   include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: 
sdk/include/dxsdk/d3dx9of.h,
   include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, 
include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h,
   include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: 
sdk/include/dxsdk/d3dx9xof.h}
-tags: {wine: c56906599cdad729834a6807747ce2c928fc511d}
+tags: {wine: 7f16670edc3ed5c8ab5bdd88e88a00f8ba1853dc}

Reply via email to