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/OGL/GLInterface/EGL.cpp | |
| 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/OGL/GLInterface/EGL.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/GLInterface/EGL.cpp | 6 |
1 files changed, 6 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() { |
