Rename: GPU_texture_orphans
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user