summaryrefslogtreecommitdiff
path: root/ui/applicationBase.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-11-19 12:30:30 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-11-19 12:30:30 +0000
commit6df9d5ad90812d598904831e046753ecc0d11e52 (patch)
treeb6d638e7198de28d2a46b4dd25aa5dddfca24d23 /ui/applicationBase.cpp
parentSave size of output in SceneRender and set viewport accordingly (diff)
downloadilt-6df9d5ad90812d598904831e046753ecc0d11e52.tar.bz2
ilt-6df9d5ad90812d598904831e046753ecc0d11e52.tar.xz
ilt-6df9d5ad90812d598904831e046753ecc0d11e52.zip
Shared context, persist main window in test, send test for upcoming pointlight
Diffstat (limited to 'ui/applicationBase.cpp')
-rw-r--r--ui/applicationBase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/applicationBase.cpp b/ui/applicationBase.cpp
index 5c87359..cad449d 100644
--- a/ui/applicationBase.cpp
+++ b/ui/applicationBase.cpp
@@ -16,6 +16,7 @@ ApplicationBase::ApplicationBase()
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 5);
+ SDL_GL_SetAttribute(SDL_GL_SHARE_WITH_CURRENT_CONTEXT, 1);
}
ApplicationBase::~ApplicationBase()