Skip to content

Commit

Permalink
Pixelpipe: init the global hash with pipe->image.id
Browse files Browse the repository at this point in the history
pipe->output_imgid is set at completion.
  • Loading branch information
aurelienpierre committed Dec 3, 2023
1 parent 4faf759 commit 95ae410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/develop/pixelpipe_hb.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void dt_pixelpipe_get_global_hash(dt_dev_pixelpipe_t *pipe, dt_develop_t *dev)
*/

// bernstein hash (djb2)
uint64_t hash = dt_hash(5381, (const char *)&pipe->output_imgid, sizeof(int));
uint64_t hash = dt_hash(5381, (const char *)&pipe->image.id, sizeof(int));

for(GList *node = pipe->nodes; node; node = g_list_next(node))
{
Expand Down

0 comments on commit 95ae410

Please sign in to comment.