Skip to content

Commit d15368c

Browse files
authored
Merge pull request #1588 from emutavchi/wpe-2.46-webgl-crash
[WebGL] avoid 'forceContextLost' notifications during destruction
2 parents 4336cfc + bbb532e commit d15368c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,9 +700,9 @@ void WebGLRenderingContextBase::destroyGraphicsContextGL()
700700
removeActivityStateChangeObserver();
701701

702702
if (m_context) {
703-
// first release the big textures allocated for the FBOs
704-
m_context->reshape(0,0);
705703
m_context->setClient(nullptr);
704+
// release the big textures allocated for the FBOs
705+
m_context->reshape(0,0);
706706
m_context = nullptr;
707707
removeActiveContext(*this);
708708
}

0 commit comments

Comments
 (0)