Fix issue with alpha channel blending on Metal

This commit is contained in:
AtomicScience 2025-02-17 09:35:15 +03:00
parent b67cd2a7f2
commit 7b89069c40
2 changed files with 8 additions and 1 deletions

Binary file not shown.

View File

@ -210,8 +210,15 @@ object UiHandler extends Logging {
ContextAttribs.CONTEXT_CORE_PROFILE_BIT_ARB,
ContextAttribs.CONTEXT_FORWARD_COMPATIBLE_BIT_ARB,
)
val pf = new PixelFormat()
.withDepthBits(24)
.withStencilBits(8)
.withAlphaBits(8)
.withSRGB(true)
logger.info(s"Creating an OpenGL context: $attrs")
Display.create((new PixelFormat).withSRGB(true), attrs)
Display.create(pf, attrs)
if (Settings.get.windowValidatePosition)
fixInsaneInitialWindowGeometry()