Skip to content
Snippets Groups Projects
Commit 78a951d1 authored by Elizabeth Figura's avatar Elizabeth Figura Committed by Alexandre Julliard
Browse files

d3dx9: Don't mark annotation variables as dirty.


This fixes a crash when trying to set their value.

Signed-off-by: default avatarZebediah Figura <zfigura@codeweavers.com>
Signed-off-by: default avatarMatteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
(cherry picked from commit 47351a60)
Signed-off-by: default avatarMichael Stefaniuc <mstefani@winehq.org>
parent bb63f676
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment