Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-07-20 17:03:04 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-07-20 17:03:04 +0300
commit21f27692daece6b6aea2887bc99d4b67d7764935 (patch)
tree6d498f2558b91bd9b6997afb71feb04054eb8429 /source/blender/editors/render/render_update.c
parent83b0bf91660c3421fa56a4b7a83f971bf793ffde (diff)
Depsgraph: Use explicit material update operation code
Avoids string comparison on key matching.
Diffstat (limited to 'source/blender/editors/render/render_update.c')
-rw-r--r--source/blender/editors/render/render_update.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c
index 42d914b1a71..5d4015f64bd 100644
--- a/source/blender/editors/render/render_update.c
+++ b/source/blender/editors/render/render_update.c
@@ -298,10 +298,6 @@ static void material_changed(Main *bmain, Material *ma)
/* icons */
BKE_icon_changed(BKE_icon_id_ensure(&ma->id));
- /* glsl */
- if (ma->gpumaterial.first)
- GPU_material_free(&ma->gpumaterial);
-
/* find node materials using this */
for (parent = bmain->mat.first; parent; parent = parent->id.next) {
if (parent->use_nodes && parent->nodetree && nodes_use_material(parent->nodetree, ma)) {