Rename: GPU_texture_orphans

This commit is contained in:
Dalai Felinto
2018-06-08 15:51:25 +02:00
parent cbbf8bbbb4
commit 856a79e1fb
4 changed files with 10 additions and 10 deletions

View File

@@ -173,10 +173,10 @@ void GPU_invalid_tex_free(void);
void GPU_texture_free(GPUTexture *tex);
void GPU_texture_init_orphans(void);
void GPU_texture_exit_orphans(void);
void GPU_texture_orphans_init(void);
void GPU_texture_orphans_exit(void);
/* This has to be called from a thread with an ogl context bound. */
void GPU_texture_delete_orphans(void);
void GPU_texture_orphans_delete(void);
void GPU_texture_ref(GPUTexture *tex);
void GPU_texture_bind(GPUTexture *tex, int number);

View File

@@ -57,7 +57,7 @@ void GPU_init(void)
gpu_extensions_init(); /* must come first */
GPU_texture_init_orphans();
GPU_texture_orphans_init();
gpu_codegen_init();
if (G.debug & G_DEBUG_GPU)
@@ -82,7 +82,7 @@ void GPU_exit(void)
gpu_batch_exit();
GPU_texture_exit_orphans();
GPU_texture_orphans_exit();
if (G.debug & G_DEBUG_GPU)
gpu_debug_exit();

View File

@@ -1124,12 +1124,12 @@ void GPU_texture_free(GPUTexture *tex)
}
}
void GPU_texture_init_orphans(void)
void GPU_texture_orphans_init(void)
{
BLI_mutex_init(&g_orphan_lock);
}
void GPU_texture_delete_orphans(void)
void GPU_texture_orphans_delete(void)
{
BLI_mutex_lock(&g_orphan_lock);
LinkData *link;
@@ -1140,9 +1140,9 @@ void GPU_texture_delete_orphans(void)
BLI_mutex_unlock(&g_orphan_lock);
}
void GPU_texture_exit_orphans(void)
void GPU_texture_orphans_exit(void)
{
GPU_texture_delete_orphans();
GPU_texture_orphans_delete();
BLI_mutex_end(&g_orphan_lock);
}

View File

@@ -2028,7 +2028,7 @@ void wm_window_raise(wmWindow *win)
void wm_window_swap_buffers(wmWindow *win)
{
GPU_texture_delete_orphans(); /* XXX should be done elsewhere. */
GPU_texture_orphans_delete(); /* XXX should be done elsewhere. */
GHOST_SwapWindowBuffers(win->ghostwin);
}