DRW: Fix assert when using draw debug API
authorClément Foucault <foucault.clem@gmail.com>
Fri, 18 Jan 2019 08:58:04 +0000 (09:58 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Fri, 18 Jan 2019 08:58:04 +0000 (09:58 +0100)
source/blender/draw/intern/draw_debug.c

index 366da92cf50f51ae62c3052d8f5dc48e4b200e84..e55cacb1d7dbb056fc5f9d5511cb397b5fc85811 100644 (file)
@@ -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);