diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-17 21:11:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-17 21:26:29 +0300 |
commit | 2aef1347f933720fd1053e2e0f20a37bdb24e169 (patch) | |
tree | f3f2f8ada1a2ad456d50fe7af09a8cf43ff352e5 /source/blender/draw/intern | |
parent | fdb0f3bc0b7d1a0cbd4e85d36978efb10663ff40 (diff) |
Cleanup: correct comments
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/draw_instance_data.c | 2 | ||||
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 2 | ||||
-rw-r--r-- | source/blender/draw/intern/draw_manager_exec.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/draw/intern/draw_instance_data.c b/source/blender/draw/intern/draw_instance_data.c index 802f49d6549..8f26cc72a02 100644 --- a/source/blender/draw/intern/draw_instance_data.c +++ b/source/blender/draw/intern/draw_instance_data.c @@ -23,7 +23,7 @@ /** * DRW Instance Data Manager * This is a special memory manager that keeps memory blocks ready to send as vbo data in one - * continuous allocation. This way we avoid feeding gawain each instance data one by one and + * continuous allocation. This way we avoid feeding #GPUBatch each instance data one by one and * unnecessary memcpy. Since we loose which memory block was used each #DRWShadingGroup we need to * redistribute them in the same order/size to avoid to realloc each frame. This is why * #DRWInstanceDatas are sorted in a list for each different data size. diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index f758dedd09f..288f291561e 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -2923,7 +2923,7 @@ void DRW_opengl_context_create(void) /* This changes the active context. */ DST.gl_context = WM_opengl_context_create(); WM_opengl_context_activate(DST.gl_context); - /* Be sure to create gawain.context too. */ + /* Be sure to create gpu_context too. */ DST.gpu_context = GPU_context_create(0); if (!G.background) { immActivate(); diff --git a/source/blender/draw/intern/draw_manager_exec.c b/source/blender/draw/intern/draw_manager_exec.c index 3bf442b4f39..09bf12dba7b 100644 --- a/source/blender/draw/intern/draw_manager_exec.c +++ b/source/blender/draw/intern/draw_manager_exec.c @@ -622,12 +622,12 @@ BLI_INLINE void draw_geometry_execute(DRWShadingGroup *shgroup, GPU_batch_bind(geom); } - /* XXX hacking gawain. we don't want to call glUseProgram! (huge performance loss) */ + /* XXX hacking #GPUBatch. we don't want to call glUseProgram! (huge performance loss) */ geom->program_in_use = true; GPU_batch_draw_advanced(geom, vert_first, vert_count, inst_first, inst_count); - geom->program_in_use = false; /* XXX hacking gawain */ + geom->program_in_use = false; /* XXX hacking #GPUBatch */ } enum { |