Cleanup: correct comments
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -145,7 +145,7 @@ void ED_draw_object_facemap(Depsgraph *depsgraph,
|
||||
|
||||
facemap_data = CustomData_get_layer(&me->pdata, CD_FACEMAP);
|
||||
|
||||
/* use gawain immediate mode fore now */
|
||||
/* Make a batch and free it each time for now. */
|
||||
const int looptris_len = poly_to_tri_count(mpoly_len, mloop_len);
|
||||
const int vbo_len_capacity = looptris_len * 3;
|
||||
int vbo_len_used = 0;
|
||||
|
||||
@@ -87,8 +87,7 @@ typedef struct View3DCameraControl {
|
||||
float ofs_backup[3];
|
||||
/* backup the views offset in case the user cancels flying in non camera mode */
|
||||
|
||||
/* backup the views quat in case the user cancels flying in non camera mode.
|
||||
* (quat for view, eul for camera) */
|
||||
/* backup the views quat in case the user cancels flying in non camera mode. */
|
||||
float rot_backup[4];
|
||||
/* remember if were ortho or not, only used for restoring the view if it was a ortho view */
|
||||
char persp_backup;
|
||||
|
||||
Reference in New Issue
Block a user