diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-03-19 17:54:02 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2021-03-19 19:43:47 +0300 |
commit | b72939aa8f66f2ddc12a9ead757388bf3a069d48 (patch) | |
tree | 9d35d0f071e74ce422ad099cb65a259c412faf15 /source/blender/draw/DRW_engine.h | |
parent | c3308ca378e2c1bda3b030274590010a47b51ded (diff) |
Draw manager: Add utility functions for context creation
Some special logic is needed to release the active DrawManager OpenGL
context when new context needs to be created by a render engine.
This change introduces functionality which is needed for such process,
including a simple example usage in the comment.
Diffstat (limited to 'source/blender/draw/DRW_engine.h')
-rw-r--r-- | source/blender/draw/DRW_engine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/DRW_engine.h b/source/blender/draw/DRW_engine.h index 2d5b93f4272..64d4567f642 100644 --- a/source/blender/draw/DRW_engine.h +++ b/source/blender/draw/DRW_engine.h @@ -176,6 +176,9 @@ void DRW_deferred_shader_remove(struct GPUMaterial *mat); struct DrawDataList *DRW_drawdatalist_from_id(struct ID *id); void DRW_drawdata_free(struct ID *id); +void DRW_opengl_context_release(void); +void DRW_opengl_context_activate(void); + #ifdef __cplusplus } #endif |