Changeset 272491 in webkit


Ignore:
Timestamp:
Feb 8, 2021 8:14:32 AM (3 years ago)
Author:
commit-queue@webkit.org
Message:

Fix WebXRWebGLLayer m_isCompositionDisabled checks
https://bugs.webkit.org/show_bug.cgi?id=221551

Patch by Imanol Fernandez <imanol> on 2021-02-08
Reviewed by Sergio Villar Senin.

Fix reversed m_isCompositionDisabled checks.

  • Modules/webxr/WebXRWebGLLayer.cpp:

(WebCore::WebXRWebGLLayer::create):
(WebCore::WebXRWebGLLayer::WebXRWebGLLayer):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r272490 r272491  
     12021-02-08  Imanol Fernandez  <ifernandez@igalia.com>
     2
     3        Fix WebXRWebGLLayer m_isCompositionDisabled checks
     4        https://bugs.webkit.org/show_bug.cgi?id=221551
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        Fix reversed m_isCompositionDisabled checks.
     9
     10        * Modules/webxr/WebXRWebGLLayer.cpp:
     11        (WebCore::WebXRWebGLLayer::create):
     12        (WebCore::WebXRWebGLLayer::WebXRWebGLLayer):
     13
    1142021-02-08  Andres Gonzalez  <andresg_22@apple.com>
    215
  • trunk/Source/WebCore/Modules/webxr/WebXRWebGLLayer.cpp

    r264215 r272491  
    7575            auto layer = adoptRef(*new WebXRWebGLLayer(WTFMove(session), WTFMove(context), init));
    7676
    77             if (layer->m_isCompositionDisabled) {
     77            if (!layer->m_isCompositionDisabled) {
    7878                // 9.4. Allocate and initialize resources compatible with session’s XR device, including GPU accessible memory buffers,
    7979                //      as required to support the compositing of layer.
     
    110110
    111111    // 9. If layer’s composition disabled boolean is false:
    112     if (m_isCompositionDisabled) {
     112    if (!m_isCompositionDisabled) {
    113113        //  1. Initialize layer’s antialias to layerInit’s antialias value.
    114114        m_antialias = init.antialias;
Note: See TracChangeset for help on using the changeset viewer.