[Bf-blender-cvs] [b192c01254c] master: Fix build error on Windows

Brecht Van Lommel noreply at git.blender.org
Sat Sep 28 12:30:37 CEST 2019


Commit: b192c01254c5d4748d06f9000e5a415b824841df
Author: Brecht Van Lommel
Date:   Sat Sep 28 12:27:18 2019 +0200
Branches: master
https://developer.blender.org/rBb192c01254c5d4748d06f9000e5a415b824841df

Fix build error on Windows

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

M	source/blender/editors/screen/area.c

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

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 6be571f692d..c068fbdf7cb 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -30,6 +30,7 @@
 
 #include "BLI_blenlib.h"
 #include "BLI_math.h"
+#include "BLI_rand.h"
 #include "BLI_utildefines.h"
 #include "BLI_linklist_stack.h"
 
@@ -547,7 +548,7 @@ void ED_region_do_draw(bContext *C, ARegion *ar)
     GPUVertFormat *format = immVertexFormat();
     uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT);
     immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);
-    immUniformColor4f(drand48(), drand48(), drand48(), 0.1f);
+    immUniformColor4f(BLI_thread_frand(0), BLI_thread_frand(0), BLI_thread_frand(0), 0.1f);
     immRectf(pos,
              ar->drawrct.xmin - ar->winrct.xmin,
              ar->drawrct.ymin - ar->winrct.ymin,



More information about the Bf-blender-cvs mailing list