Skip to content

Commit

Permalink
fix: macOS blur issue (#5586)
Browse files Browse the repository at this point in the history
Co-authored-by: Izuna <[email protected]>
  • Loading branch information
heckerpowered and 1zun4 authored Feb 24, 2025
1 parent 1d92ca5 commit f6919d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import net.ccbluex.liquidbounce.utils.client.chat
import net.ccbluex.liquidbounce.utils.client.inGame
import net.ccbluex.liquidbounce.utils.client.markAsError
import net.ccbluex.liquidbounce.utils.entity.RenderedEntities
import net.minecraft.client.MinecraftClient
import net.minecraft.client.gui.screen.DisconnectedScreen

/**
Expand Down Expand Up @@ -67,10 +66,7 @@ object ModuleHud : ClientModule("HUD", Category.RENDER, state = true, hide = tru
}

val isBlurable
get() = blur && !(mc.options.hudHidden && mc.currentScreen == null) &&
// Only blur on Windows and Linux - Mac seems to have issues with it
// TODO: fix blur on macOS
!MinecraftClient.IS_SYSTEM_MAC
get() = blur && !(mc.options.hudHidden && mc.currentScreen == null)

init {
tree(Configurable("In-built", value = components as MutableList<Value<*>>))
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/resources/liquidbounce/shaders/sobel.vert
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#version 150
#version 410 core

in vec4 Position;
in vec2 UV0;
layout (location = 0) in vec4 Position;
layout (location = 1) in vec2 UV0;

out vec2 fragTexCoord;

Expand Down

0 comments on commit f6919d2

Please sign in to comment.