Skip to content

Commit 11f4d9f

Browse files
committed
NonCompositedWebGL: make the ANGLE not current before destroyng it.
1 parent 5be7b6e commit 11f4d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ GraphicsContextGLANGLE::~GraphicsContextGLANGLE()
6868
if (m_rendersToHostWindow) {
6969
// When rendering to the host window, destroy the context only, not the surface, as it's the static one.
7070
if (m_contextObj) {
71-
EGL_DestroyContext(m_displayObj, m_contextObj);
7271
EGL_MakeCurrent(m_displayObj, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
72+
EGL_DestroyContext(m_displayObj, m_contextObj);
7373
s_windowSurfaceUsers--;
7474
if (!s_windowSurfaceUsers) {
7575
EGL_DestroySurface(m_displayObj, s_windowSurfaceObj);

0 commit comments

Comments
 (0)