diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-07-31 19:16:08 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-07-31 19:21:23 +0300 |
commit | 7e0eb0d071776ea938a70737fb3a0a9592264e94 (patch) | |
tree | 3b0ef6162f0d8aa3fe5fe7abf3cdf49e55638b4a /source/blender/gpu/intern/gpu_context_private.h | |
parent | 3ecba657bb79e010cffae4110ee74a063429f7ae (diff) |
GPUFrameBuffer: Put active framebuffer in GPUContext
instead of being ThreadLocal and leading to incorrect usage.
We still enforce no framebuffer when changing context. We can lift this
restriction later.
Diffstat (limited to 'source/blender/gpu/intern/gpu_context_private.h')
-rw-r--r-- | source/blender/gpu/intern/gpu_context_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_context_private.h b/source/blender/gpu/intern/gpu_context_private.h index 4881a892e38..762d9ff10c0 100644 --- a/source/blender/gpu/intern/gpu_context_private.h +++ b/source/blender/gpu/intern/gpu_context_private.h @@ -61,6 +61,9 @@ void gpu_context_remove_batch(GPUContext *ctx, GPUBatch *batch); void gpu_context_add_framebuffer(GPUContext *ctx, struct GPUFrameBuffer *fb); void gpu_context_remove_framebuffer(GPUContext *ctx, struct GPUFrameBuffer *fb); +void gpu_context_active_framebuffer_set(GPUContext *ctx, struct GPUFrameBuffer *fb); +struct GPUFrameBuffer *gpu_context_active_framebuffer_get(GPUContext *ctx); + #ifdef __cplusplus } #endif |