Implement ClearCurrent on the EGL GLInterface

This fixes an error on GLInterface shutdown when using EGL.
This commit is contained in:
Ryan Houdek 2015-09-04 19:58:58 -05:00
parent 3a04c77180
commit 6cf7048423
2 changed files with 7 additions and 0 deletions

View File

@ -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()
{

View File

@ -28,5 +28,6 @@ public:
void* GetFuncAddress(const std::string& name);
bool Create(void *window_handle);
bool MakeCurrent();
bool ClearCurrent();
void Shutdown();
};