[webkit-changes] [WebKit/WebKit] ed2863: [GTK][WPE] Don't allow depth test and stencil clip...
Miguel Gómez
noreply at github.com
Tue Apr 30 00:36:09 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ed286350cfd576f534f27200fa06d714fb14f8a9
https://github.com/WebKit/WebKit/commit/ed286350cfd576f534f27200fa06d714fb14f8a9
Author: Miguel Gomez <magomez at igalia.com>
Date: 2024-04-30 (Tue, 30 Apr 2024)
Changed paths:
M Source/WebCore/platform/graphics/egl/GLContext.cpp
M Source/WebCore/platform/graphics/egl/GLContext.h
M Source/WebCore/platform/graphics/texmap/BitmapTexture.cpp
M Source/WebCore/platform/graphics/texmap/BitmapTexture.h
Log Message:
-----------
[GTK][WPE] Don't allow depth test and stencil clipping if packed depth stencil is not supported
https://bugs.webkit.org/show_bug.cgi?id=273177
Reviewed by Carlos Garcia Campos.
Use a packed depth stencil format when available, which allows depth testing
and stencil clipping at the same time. If packed depth stencil is not
supported, use separate buffers for depth and stencil. In the latter case,
if both buffers are requested at the same time, the stencil buffer won't
be created.
* Source/WebCore/platform/graphics/egl/GLContext.cpp:
(WebCore::GLContext::glExtensions const):
* Source/WebCore/platform/graphics/egl/GLContext.h:
* Source/WebCore/platform/graphics/texmap/BitmapTexture.cpp:
(WebCore::depthBufferFormat):
(WebCore::BitmapTexture::initializeStencil):
(WebCore::BitmapTexture::initializeDepthBuffer):
(WebCore::BitmapTexture::~BitmapTexture):
* Source/WebCore/platform/graphics/texmap/BitmapTexture.h:
Canonical link: https://commits.webkit.org/278159@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list