[Bf-blender-cvs] [a19607ca56] clay-engine: Silence more warnings

Dalai Felinto noreply at git.blender.org
Wed Feb 1 12:00:48 CET 2017


Commit: a19607ca567d48c324d89b6d0da4b9dbff69f251
Author: Dalai Felinto
Date:   Wed Feb 1 11:59:54 2017 +0100
Branches: clay-engine
https://developer.blender.org/rBa19607ca567d48c324d89b6d0da4b9dbff69f251

Silence more warnings

This should silence the current warnings, and gives us real warnings if
the bContext data is tampered with.

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

M	source/blender/draw/intern/draw_manager.c

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

diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index 85c8d52a6f..0c3c9a022c 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -130,7 +130,7 @@ static struct DRWGlobalState{
 	int tex_bind_id;
 	float size[2];
 	/* Current rendering context set by DRW_viewport_init */
-	bContext *context;
+	const struct bContext *context;
 } DST = {NULL};
 
 /* ***************************************** TEXTURES ******************************************/




More information about the Bf-blender-cvs mailing list