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:
authorDalai Felinto <dfelinto@gmail.com>2017-06-23 17:45:14 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-06-23 17:45:14 +0300
commitdd608ba20e04990a398f2ed9bcafa5158dc33a2b (patch)
tree7fd47fa170d45a2cde36eba2cfe2a1b291c798de /source/blender/editors/render/render_update.c
parent986a3d15ac68545a9886d20f73376f818c28531a (diff)
Silence warnings (tsc, tsc)
Diffstat (limited to 'source/blender/editors/render/render_update.c')
-rw-r--r--source/blender/editors/render/render_update.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c
index fd8b3375c19..b8f64c1db58 100644
--- a/source/blender/editors/render/render_update.c
+++ b/source/blender/editors/render/render_update.c
@@ -514,8 +514,6 @@ static void image_changed(Main *bmain, Image *ima)
static void scene_changed(Main *bmain, Scene *scene)
{
Object *ob;
- Material *ma;
- World *wo;
/* glsl */
for (ob = bmain->object.first; ob; ob = ob->id.next) {
@@ -532,11 +530,11 @@ static void scene_changed(Main *bmain, Scene *scene)
}
#if 0 /* This was needed by old glsl where all lighting was statically linked into the shader. */
- for (ma = bmain->mat.first; ma; ma = ma->id.next)
+ for (Material *ma = bmain->mat.first; ma; ma = ma->id.next)
if (ma->gpumaterial.first)
GPU_material_free(&ma->gpumaterial);
- for (wo = bmain->world.first; wo; wo = wo->id.next)
+ for (World *wo = bmain->world.first; wo; wo = wo->id.next)
if (wo->gpumaterial.first)
GPU_material_free(&wo->gpumaterial);