From aed693eded4bea4be9610f2bbd132288236d06b4 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 21 Jan 2016 19:03:58 -0600 Subject: Implement shared contexts in the EGL context. This is being implemented here first under EGL since the infrastructure is already in place for this due to the Android code requiring some bits. The rest of the interfaces will come in a little bit. This will be required for threaded shader compiling in the near future. --- Source/Core/Common/GL/GLInterfaceBase.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Core/Common/GL/GLInterfaceBase.h') 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 CreateSharedContext() { return nullptr; } }; extern std::unique_ptr GLInterface; -- cgit v1.2.3