mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 01:33:37 +00:00
d3dx9: Don't mark annotation variables as dirty.
This fixes a crash when trying to set their value. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b3b6d8c99e
commit
47351a609d
|
@ -1313,10 +1313,15 @@ static void *record_parameter(struct d3dx_effect *effect, struct d3dx_parameter
|
|||
|
||||
static void set_dirty(struct d3dx_parameter *param)
|
||||
{
|
||||
struct d3dx_shared_data *shared_data;
|
||||
struct d3dx_top_level_parameter *top_param = param->top_level_param;
|
||||
ULONG64 new_update_version = next_update_version(top_param->version_counter);
|
||||
struct d3dx_shared_data *shared_data;
|
||||
ULONG64 new_update_version;
|
||||
|
||||
/* This is true for annotations. */
|
||||
if (!top_param)
|
||||
return;
|
||||
|
||||
new_update_version = next_update_version(top_param->version_counter);
|
||||
if ((shared_data = top_param->shared_data))
|
||||
shared_data->update_version = new_update_version;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue