mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 12:04:56 +00:00
Merge pull request #2964 from Sonicadvance1/EGL_fix
Implement ClearCurrent on the EGL GLInterface
This commit is contained in:
commit
34407ed3d7
2 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -28,5 +28,6 @@ public:
|
|||
void* GetFuncAddress(const std::string& name);
|
||||
bool Create(void *window_handle);
|
||||
bool MakeCurrent();
|
||||
bool ClearCurrent();
|
||||
void Shutdown();
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue