diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2016-01-29 19:33:52 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2016-01-29 19:33:52 -0500 |
| commit | c50efb17e5d58ea3a92ffb47d9f91e4e1f6ffa4b (patch) | |
| tree | 493c47b58d855fee08fd759c0f7c794e734cee10 /Source/Core/Common/GL/GLInterfaceBase.h | |
| parent | ea3a457091565e9d903abd9b75c9a4c209359aa8 (diff) | |
| parent | aed693eded4bea4be9610f2bbd132288236d06b4 (diff) | |
Merge pull request #3546 from Sonicadvance1/egl_shared_context
Implement shared contexts in the EGL context.
Diffstat (limited to 'Source/Core/Common/GL/GLInterfaceBase.h')
| -rw-r--r-- | Source/Core/Common/GL/GLInterfaceBase.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/Common/GL/GLInterfaceBase.h b/Source/Core/Common/GL/GLInterfaceBase.h index 34834403e5..2cc022faee 100644 --- a/Source/Core/Common/GL/GLInterfaceBase.h +++ b/Source/Core/Common/GL/GLInterfaceBase.h @@ -23,6 +23,8 @@ protected: // Window dimensions. u32 s_backbuffer_width = 0; u32 s_backbuffer_height = 0; + bool m_core = false; + bool m_is_shared = false; GLInterfaceMode s_opengl_mode = GLInterfaceMode::MODE_DETECT; public: @@ -32,6 +34,7 @@ public: virtual GLInterfaceMode GetMode() { return s_opengl_mode; } virtual void* GetFuncAddress(const std::string& name) { return nullptr; } virtual bool Create(void *window_handle, bool core = true) { return true; } + virtual bool Create(cInterfaceBase* main_context) { return true; } virtual bool MakeCurrent() { return true; } virtual bool ClearCurrent() { return true; } virtual void Shutdown() {} @@ -44,6 +47,7 @@ public: virtual bool PeekMessages() { return false; } virtual void UpdateHandle(void* window_handle) {} virtual void UpdateSurface() {} + virtual std::unique_ptr<cInterfaceBase> CreateSharedContext() { return nullptr; } }; extern std::unique_ptr<cInterfaceBase> GLInterface; |
