Commit 0c634532 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d3dx9: Move full_name_tmp_size out of struct d3dx9_base_effect.

parent 3779ff07
......@@ -161,8 +161,6 @@ struct d3dx9_base_effect
DWORD flags;
ULONG64 version_counter;
unsigned int full_name_tmp_size;
};
struct d3dx_effect
......@@ -176,6 +174,7 @@ struct d3dx_effect
struct d3dx_object *objects;
struct wine_rb_tree param_tree;
char *full_name_tmp;
unsigned int full_name_tmp_size;
struct ID3DXEffectStateManager *manager;
struct IDirect3DDevice9 *device;
......@@ -928,7 +927,7 @@ struct d3dx_parameter *get_parameter_by_name(struct d3dx9_base_effect *base,
name_len = strlen(name);
param_name_len = strlen(parameter->full_name);
full_name_size = name_len + param_name_len + 2;
if (base->full_name_tmp_size < full_name_size)
if (effect->full_name_tmp_size < full_name_size)
{
if (!(full_name = heap_realloc(effect->full_name_tmp, full_name_size)))
{
......@@ -936,7 +935,7 @@ struct d3dx_parameter *get_parameter_by_name(struct d3dx9_base_effect *base,
return NULL;
}
effect->full_name_tmp = full_name;
base->full_name_tmp_size = full_name_size;
effect->full_name_tmp_size = full_name_size;
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment