diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-09-04 19:58:58 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-09-04 19:58:58 -0500 |
| commit | 6cf704842323f2e3731ca0f03c4e1ac2fe2adda3 (patch) | |
| tree | bf2e41802cd985c38925b66000549ad9966f28c0 /Source/Core/VideoBackends | |
| parent | 3a04c771808d2967ff54f3a8b7af9fed3428fd21 (diff) | |
Implement ClearCurrent on the EGL GLInterface
This fixes an error on GLInterface shutdown when using EGL.
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp | 6 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/OGL/GLInterface/EGL.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp b/Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp index 6020be1eaa..3649886104 100644 --- a/Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp +++ b/Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp @@ -201,6 +201,12 @@ bool cInterfaceEGL::MakeCurrent() { return eglMakeCurrent(egl_dpy, egl_surf, egl_surf, egl_ctx); } + +bool cInterfaceEGL::ClearCurrent() +{ + return eglMakeCurrent(egl_dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); +} + // Close backend void cInterfaceEGL::Shutdown() { diff --git a/Source/Core/VideoBackends/OGL/GLInterface/EGL.h b/Source/Core/VideoBackends/OGL/GLInterface/EGL.h index 2d290bf02f..5309d81401 100644 --- a/Source/Core/VideoBackends/OGL/GLInterface/EGL.h +++ b/Source/Core/VideoBackends/OGL/GLInterface/EGL.h @@ -28,5 +28,6 @@ public: void* GetFuncAddress(const std::string& name); bool Create(void *window_handle); bool MakeCurrent(); + bool ClearCurrent(); void Shutdown(); }; |
