diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-07-28 18:00:46 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-07-28 18:00:46 +0300 |
commit | 82327ce01de9be65b20c261977c9c3ccb59e0952 (patch) | |
tree | a183f06598927ab9e6b7835c7b63a367d6857509 /source/blender/draw/intern/draw_texture_pool.h | |
parent | 0830ff55d827c6936f9557ac82eb7881494df53c (diff) |
DRW: TextureFromPool: Change API to use acquire / release
This removes the quirk of having to call the sync function for each new
render loop.
# Conflicts:
# source/blender/draw/engines/eevee_next/eevee_view.cc
Diffstat (limited to 'source/blender/draw/intern/draw_texture_pool.h')
-rw-r--r-- | source/blender/draw/intern/draw_texture_pool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_texture_pool.h b/source/blender/draw/intern/draw_texture_pool.h index 1c30ea88552..7396b55d53a 100644 --- a/source/blender/draw/intern/draw_texture_pool.h +++ b/source/blender/draw/intern/draw_texture_pool.h @@ -26,6 +26,7 @@ void DRW_texture_pool_free(DRWTexturePool *pool); /** * Try to find a texture corresponding to params into the texture pool. * If no texture was found, create one and add it to the pool. + * DEPRECATED: Use DRW_texture_pool_texture_acquire instead and do it just before rendering. */ GPUTexture *DRW_texture_pool_query( DRWTexturePool *pool, int width, int height, eGPUTextureFormat format, void *user); |