Blender Git Loki

Git Commits -> Revision 28df010

Revision 28df010 by Jacques Lucke (master)
December 25, 2021, 10:14 (GMT)
Fix T94362: GPUMaterialTexture references freed ImageUser

The issue was caused by rB7e712b2d6a0d257d272ed35622b41d06274af8df
and the fact that `GPUMaterialTexture` contains an `ImageUser *` which
references the `ImageUser` on e.g. `NodeTexImage`.

Since the node tree update refactor, it is possible that the node tree changes
without changing the actual material. Therefore, either the renderer should
check if the node tree has changed or it should not store pointers to data in
node storage. The latter approach is implemented in this patch.

Differential Revision: https://developer.blender.org/D13663

Commit Details:

Full Hash: 28df0107d4a83dd7ce62781bef821092db1e0835
Parent Commit: f1e0411
Lines Changed: +11, -5

3 Modified Paths:

/source/blender/draw/intern/draw_manager_data.c (+4, -3) (Diff)
/source/blender/gpu/GPU_material.h (+3, -1) (Diff)
/source/blender/gpu/intern/gpu_node_graph.c (+4, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021