diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-29 15:03:15 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-30 14:11:03 +0300 |
commit | 0f372f3966c434da5faa8e221f9da2aa48999a61 (patch) | |
tree | 08ed30ca3f78cf767691c7b3575703ce25cfb9ee /source/blender/gpu/intern/gpu_context_private.hh | |
parent | bb530a77b638d1ccab779e1f43675030597f995e (diff) |
GPUContext: Update internal framebuffer size when activating context
This is to ensure the FrameBuffer extents are always up to date.
Diffstat (limited to 'source/blender/gpu/intern/gpu_context_private.hh')
-rw-r--r-- | source/blender/gpu/intern/gpu_context_private.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_context_private.hh b/source/blender/gpu/intern/gpu_context_private.hh index 0374df9bbc5..04b347d1bff 100644 --- a/source/blender/gpu/intern/gpu_context_private.hh +++ b/source/blender/gpu/intern/gpu_context_private.hh @@ -65,6 +65,8 @@ struct GPUContext { /** Thread on which this context is active. */ pthread_t thread_; bool is_active_; + /** Avoid including GHOST headers. Can be NULL for offscreen contexts. */ + void *ghost_window_; public: GPUContext(); |