mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2025-12-20 02:59:19 +01:00
Fix issue with alpha channel blending on Metal
This commit is contained in:
parent
b67cd2a7f2
commit
7b89069c40
BIN
lib/native/liblwjgl-arm64.dylib
Normal file
BIN
lib/native/liblwjgl-arm64.dylib
Normal file
Binary file not shown.
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user