[Bf-blender-cvs] [53bce31c953] tmp-overlay-engine: Overlay Engine: Fix warnings

Clément Foucault noreply at git.blender.org
Sat Nov 16 00:30:00 CET 2019


Commit: 53bce31c95320d60220de3900c6fdc461c1aa74a
Author: Clément Foucault
Date:   Fri Nov 15 20:24:28 2019 +0100
Branches: tmp-overlay-engine
https://developer.blender.org/rB53bce31c95320d60220de3900c6fdc461c1aa74a

Overlay Engine: Fix warnings

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

M	source/blender/draw/engines/overlay/overlay_image.c

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

diff --git a/source/blender/draw/engines/overlay/overlay_image.c b/source/blender/draw/engines/overlay/overlay_image.c
index 04aa652654a..d9af32b860f 100644
--- a/source/blender/draw/engines/overlay/overlay_image.c
+++ b/source/blender/draw/engines/overlay/overlay_image.c
@@ -126,7 +126,8 @@ static struct GPUTexture *image_camera_background_texture_get(CameraBGImage *bgp
   MovieClip *clip = NULL;
   GPUTexture *tex = NULL;
   Scene *scene = draw_ctx->scene;
-  float aspect_x, aspect_y, width, height;
+  float aspect_x, aspect_y;
+  int width, height;
   int ctime = (int)DEG_get_ctime(draw_ctx->depsgraph);
   *r_use_alpha_premult = false;
 
@@ -404,7 +405,7 @@ void OVERLAY_image_empty_cache_populate(OVERLAY_Data *vedata, Object *ob)
   }
 }
 
-void OVERLAY_image_cache_finish(OVERLAY_Data *vedata)
+void OVERLAY_image_cache_finish(OVERLAY_Data *UNUSED(vedata))
 {
   /* Order by Z depth. */
 }



More information about the Bf-blender-cvs mailing list