Restore the original GL attributes after EGLRenderer is destroyed

This commit is contained in:
Cameron Gutman 2020-05-15 20:22:11 -07:00
commit 42ced309d3
2 changed files with 15 additions and 0 deletions

View file

@ -37,5 +37,9 @@ private:
PFNGLBINDVERTEXARRAYOESPROC m_glBindVertexArrayOES;
PFNGLDELETEVERTEXARRAYSOESPROC m_glDeleteVertexArraysOES;
int m_OldContextProfileMask;
int m_OldContextMajorVersion;
int m_OldContextMinorVersion;
SDL_Renderer *m_DummyRenderer;
};