diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-04-29 09:52:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-04-29 09:52:12 +0300 |
commit | 8f028ec8408c35c2029e6a0caeb7eb27dc8e53f3 (patch) | |
tree | 897954a657ae5d01489550c5d54c0f8d286b8558 /source/blender/draw/modes/edit_text_mode.c | |
parent | 33a5248b6c82d7930089544be10480fa0a25aa80 (diff) |
Cleanup: rename struct for private engine data
Also remove from pass list (there were some duplicate unused entries).
Diffstat (limited to 'source/blender/draw/modes/edit_text_mode.c')
-rw-r--r-- | source/blender/draw/modes/edit_text_mode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/draw/modes/edit_text_mode.c b/source/blender/draw/modes/edit_text_mode.c index 0d4326c2e24..03da9ebbb94 100644 --- a/source/blender/draw/modes/edit_text_mode.c +++ b/source/blender/draw/modes/edit_text_mode.c @@ -79,7 +79,7 @@ typedef struct EDIT_TEXT_StorageList { * free with MEM_freeN() when viewport is freed. * (not per object) */ struct CustomStruct *block; - struct g_data *g_data; + struct EDIT_TEXT_PrivateData *g_data; } EDIT_TEXT_StorageList; typedef struct EDIT_TEXT_Data { @@ -105,12 +105,12 @@ static struct { GPUShader *overlay_cursor_sh; } e_data = {NULL}; /* Engine data */ -typedef struct g_data { +typedef struct EDIT_TEXT_PrivateData { /* resulting curve as 'wire' for fast editmode drawing */ DRWShadingGroup *wire_shgrp; DRWShadingGroup *overlay_select_shgrp; DRWShadingGroup *overlay_cursor_shgrp; -} g_data; /* Transient data */ +} EDIT_TEXT_PrivateData; /* Transient data */ /* *********** FUNCTIONS *********** */ @@ -162,7 +162,7 @@ static void EDIT_TEXT_cache_init(void *vedata) if (!stl->g_data) { /* Alloc transient pointers */ - stl->g_data = MEM_mallocN(sizeof(g_data), "g_data"); + stl->g_data = MEM_mallocN(sizeof(*stl->g_data), __func__); } { |