diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-02-20 01:50:52 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-02-21 17:28:26 +0300 |
commit | 1b3f9ecd0d0bdf20de24f72d73517cc97d925a15 (patch) | |
tree | e56337f844a8f58ce249d28ae60486f94175c718 /source/blender/blenloader | |
parent | d4ee0cee51e01cf62acc1e239844fcb6c7dbf449 (diff) |
Gawain: Add new context/vao manager.
This allows allocation of VAOs from different opengl contexts and thread as long as the drawing happens in the same context.
Allocation is thread safe as long as we abide by the "one opengl context per thread" rule.
We can still free from any thread and actual freeing will occur at new vao allocation or next context binding.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 6e89ed36add..38149ae94ae 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -6496,6 +6496,7 @@ static void direct_link_windowmanager(FileData *fd, wmWindowManager *wm) oldnewmap_insert(fd->globmap, hook, win->workspace_hook, 0); win->ghostwin = NULL; + win->gwnctx = NULL; win->eventstate = NULL; win->tweak = NULL; #ifdef WIN32 |