[Bf-blender-cvs] [a7b8538f4c8] master: DRW: Fix assert when using draw debug API

Clément Foucault noreply at git.blender.org
Fri Jan 18 10:23:23 CET 2019


Commit: a7b8538f4c8d77107f8c6be01cd9fcdb80acacb6
Author: Clément Foucault
Date:   Fri Jan 18 09:58:04 2019 +0100
Branches: master
https://developer.blender.org/rBa7b8538f4c8d77107f8c6be01cd9fcdb80acacb6

DRW: Fix assert when using draw debug API

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

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

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

diff --git a/source/blender/draw/intern/draw_debug.c b/source/blender/draw/intern/draw_debug.c
index 366da92cf50..e55cacb1d7d 100644
--- a/source/blender/draw/intern/draw_debug.c
+++ b/source/blender/draw/intern/draw_debug.c
@@ -211,7 +211,6 @@ static void drw_debug_draw_spheres(void)
 	GPUBatch *draw_batch = GPU_batch_create(GPU_PRIM_LINES, empty_sphere->verts[0], NULL);
 	GPU_batch_instbuf_set(draw_batch, inst_vbo, true);
 	GPU_batch_program_set_builtin(draw_batch, GPU_SHADER_INSTANCE_VARIYING_COLOR_VARIYING_SIZE);
-	GPU_batch_uniform_1f(draw_batch, "alpha", 1.0f);
 
 	GPU_batch_draw(draw_batch);
 	GPU_batch_discard(draw_batch);



More information about the Bf-blender-cvs mailing list