Changeset 240723 in webkit


Ignore:
Timestamp:
Jan 30, 2019 12:04:14 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK][Wayland] REGRESSION(r240712): Clear the GL context if it's the current one on dispose
https://bugs.webkit.org/show_bug.cgi?id=194024

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2019-01-30
Reviewed by Michael Catanzaro.

Fixes a crash in gdk_gl_context_dispose().

  • UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:

(WebKit::AcceleratedBackingStoreWayland::~AcceleratedBackingStoreWayland):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r240717 r240723  
     12019-01-30  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK][Wayland] REGRESSION(r240712): Clear the GL context if it's the current one on dispose
     4        https://bugs.webkit.org/show_bug.cgi?id=194024
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Fixes a crash in gdk_gl_context_dispose().
     9
     10        * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:
     11        (WebKit::AcceleratedBackingStoreWayland::~AcceleratedBackingStoreWayland):
     12
    1132019-01-30  Antti Koivisto  <antti@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreWayland.cpp

    r240712 r240723  
    5959{
    6060    WaylandCompositor::singleton().unregisterWebPage(m_webPage);
     61
     62#if GTK_CHECK_VERSION(3, 16, 0)
     63    if (m_gdkGLContext && m_gdkGLContext.get() == gdk_gl_context_get_current())
     64        gdk_gl_context_clear_current();
     65#endif
    6166}
    6267
Note: See TracChangeset for help on using the changeset viewer.