[Bf-blender-cvs] [b2fde7b1ee2] blender2.8: Silence eevee warnings

Dalai Felinto noreply at git.blender.org
Wed Apr 26 11:31:29 CEST 2017


Commit: b2fde7b1ee2151c027b5cbd03a6b75c7e9cd2739
Author: Dalai Felinto
Date:   Wed Apr 26 11:25:43 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBb2fde7b1ee2151c027b5cbd03a6b75c7e9cd2739

Silence eevee warnings

===================================================================

M	source/blender/draw/engines/eevee/eevee_lights.c
M	source/blender/draw/engines/eevee/eevee_probes.c

===================================================================

diff --git a/source/blender/draw/engines/eevee/eevee_lights.c b/source/blender/draw/engines/eevee/eevee_lights.c
index 0ce937b1304..39e666cb613 100644
--- a/source/blender/draw/engines/eevee/eevee_lights.c
+++ b/source/blender/draw/engines/eevee/eevee_lights.c
@@ -105,6 +105,8 @@ void EEVEE_lights_cache_add(EEVEE_StorageList *stl, Object *ob)
 				linfo->num_cube++;
 			}
 		}
+#else
+		UNUSED_VARS(la);
 #endif
 		if (!led->sto) {
 			led->sto = MEM_mallocN(sizeof(EEVEE_LightData), "EEVEE_LightData");
diff --git a/source/blender/draw/engines/eevee/eevee_probes.c b/source/blender/draw/engines/eevee/eevee_probes.c
index 6d9c6ae15a4..b741e2c656b 100644
--- a/source/blender/draw/engines/eevee/eevee_probes.c
+++ b/source/blender/draw/engines/eevee/eevee_probes.c
@@ -133,10 +133,6 @@ void EEVEE_refresh_probe(EEVEE_Data *vedata)
 	EEVEE_StorageList *stl = vedata->stl;
 	EEVEE_ProbesInfo *pinfo = stl->probes;
 
-	const DRWContextState *draw_ctx = DRW_context_state_get();
-	Scene *scene = draw_ctx->scene;
-	World *world = scene->world;
-
 	float projmat[4][4];
 
 	/* 1 - Render to cubemap target using geometry shader. */




More information about the Bf-blender-cvs mailing list