diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-06 05:30:38 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-08 02:15:28 +0300 |
commit | 0ccf3f89d2e2389d433d1ab682ad04310a9b19ae (patch) | |
tree | 4670325763c47478f86f29de394e3de933943f1d /source/blender/windowmanager/intern/wm_window.c | |
parent | 0255f1e0225d2eebfd39a9c16d9be299857b9efc (diff) |
GPU: Move ghost default framebuffer getter to context creation
Diffstat (limited to 'source/blender/windowmanager/intern/wm_window.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index e0dcd746aea..47afa343394 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -615,8 +615,7 @@ static void wm_window_ghostwindow_add(wmWindowManager *wm, if (ghostwin) { GHOST_RectangleHandle bounds; - GLuint default_fb = GHOST_GetDefaultOpenGLFramebuffer(ghostwin); - win->gpuctx = GPU_context_create(default_fb); + win->gpuctx = GPU_context_create(ghostwin); /* needed so we can detect the graphics card below */ GPU_init(); |