diff options
author | Tomoaki Kawada <i@yvt.jp> | 2019-06-01 18:54:07 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-02 13:50:50 +0300 |
commit | 62fe7e9a9d0e211bc2ad4cdfedb2489c5f899133 (patch) | |
tree | caa21887fa80485937012a17edcea8126ae7482e /source/blender/windowmanager/intern/wm_window.c | |
parent | 2a5dc454f63a4c3442d0ff0715cbd3d135bb5ca7 (diff) |
GPU: support default framebuffer with ID not equal to 0
Diffstat (limited to 'source/blender/windowmanager/intern/wm_window.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index 7ae572e5685..e9cf1cc5469 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -581,7 +581,8 @@ static void wm_window_ghostwindow_add(wmWindowManager *wm, const char *title, wm if (ghostwin) { GHOST_RectangleHandle bounds; - win->gpuctx = GPU_context_create(); + GLuint default_fb = GHOST_GetDefaultOpenGLFramebuffer(ghostwin); + win->gpuctx = GPU_context_create(default_fb); /* needed so we can detect the graphics card below */ GPU_init(); |