mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 14:18:31 +09:00
[Fix] (MG_State/EGLState, MG_Backend): defer current EGL surface destruction
This commit is contained in:
@@ -169,6 +169,7 @@ namespace MobileGL {
|
||||
EGLDisplayHandle Display = EGL_NO_DISPLAY;
|
||||
EGLConfigHandle Config = nullptr;
|
||||
SurfaceType Type = SurfaceType::Window;
|
||||
Bool DestroyPending = false;
|
||||
Uint64 NativeHandleKey = 0;
|
||||
EGLClientBuffer ClientBuffer = nullptr;
|
||||
EGLenum BufferType = EGL_NONE;
|
||||
@@ -232,6 +233,8 @@ namespace MobileGL {
|
||||
|
||||
void ReleaseDisplayObjects(EGLDisplayHandle display);
|
||||
void ReleaseThreadUnlocked(const std::thread::id& threadKey);
|
||||
Bool IsSurfaceCurrentUnlocked(EGLSurfaceHandle surface) const;
|
||||
void DestroyPendingSurfaceIfUnused(EGLSurfaceHandle surface);
|
||||
|
||||
private:
|
||||
mutable std::recursive_mutex m_mutex;
|
||||
|
||||
Reference in New Issue
Block a user