diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-03-03 05:40:13 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-03-03 05:40:13 +0300 |
commit | c2baf3e486021c048c87eea66e3183966ff86d2f (patch) | |
tree | 8e15152bb849f2b6ae58ec28d475cdc841c8efb7 /source/blender/gpu/GPU_buffers.h | |
parent | e0a2bd43dda7490f495b11acdfa2ac7fec55b4ef (diff) |
OpenGL: draw PBVH bounding box with new imm mode
It wasn't using old immediate mode, but was using
- client vertex arrays (obsolete)
- quads (obsolete)
- state attrib stack (obsolete)
- polygon mode (still allowed, but gross)
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r-- | source/blender/gpu/GPU_buffers.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index b693d473bd8..958d5aed4a4 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -258,10 +258,8 @@ void GPU_update_grid_pbvh_buffers(GPU_PBVH_Buffers *buffers, struct CCGElem **gr void GPU_draw_pbvh_buffers(GPU_PBVH_Buffers *buffers, DMSetMaterial setMaterial, bool wireframe, bool fast); -/* debug PBVH draw*/ -void GPU_draw_pbvh_BB(float min[3], float max[3], bool leaf); -void GPU_end_draw_pbvh_BB(void); -void GPU_init_draw_pbvh_BB(void); +/* debug PBVH draw */ +void GPU_draw_pbvh_BB(float min[3], float max[3], bool leaf, unsigned int pos); bool GPU_pbvh_buffers_diffuse_changed(GPU_PBVH_Buffers *buffers, struct GSet *bm_faces, bool show_diffuse_color); |