Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/gpencil/gpencil_engine.c
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| static void gpencil_free_runtime_data(GPENCIL_StorageList *stl) | void DRW_gpencil_free_runtime_data(void *ved) | ||||
| { | { | ||||
| GPENCIL_Data *vedata = (GPENCIL_Data *)ved; | |||||
| GPENCIL_StorageList *stl = ((GPENCIL_Data *)vedata)->stl; | |||||
| /* free gpu data */ | /* free gpu data */ | ||||
| DRW_TEXTURE_FREE_SAFE(stl->g_data->gpencil_blank_texture); | DRW_TEXTURE_FREE_SAFE(stl->g_data->gpencil_blank_texture); | ||||
| Context not available. | |||||
| /* if the draw is for select, do a basic drawing and return */ | /* if the draw is for select, do a basic drawing and return */ | ||||
| if (DRW_state_is_select() || DRW_state_is_depth()) { | if (DRW_state_is_select() || DRW_state_is_depth()) { | ||||
| drw_gpencil_select_render(stl, psl); | drw_gpencil_select_render(stl, psl); | ||||
| /* free memory */ | |||||
| gpencil_free_runtime_data(stl); | |||||
| return; | return; | ||||
| } | } | ||||
| Context not available. | |||||
| } | } | ||||
| /* free memory */ | /* free memory */ | ||||
| gpencil_free_runtime_data(stl); | DRW_gpencil_free_runtime_data(ved); | ||||
| return; | return; | ||||
| } | } | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| /* free memory */ | /* free memory */ | ||||
| gpencil_free_runtime_data(stl); | DRW_gpencil_free_runtime_data(ved); | ||||
| /* reset */ | /* reset */ | ||||
| if (DRW_state_is_fbo()) { | if (DRW_state_is_fbo()) { | ||||
| Context not available. | |||||