-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 278159@main (ed28635). https://bugs.webkit.org/show_bug.c…
…gi?id=273177 [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 Canonical link: https://commits.webkit.org/274313.193@webkitglib/2.44
- Loading branch information
Showing
4 changed files
with
43 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters