Skip to content

Commit

Permalink
Fix VGUIs drawing in 2D when the player is behind the screen
Browse files Browse the repository at this point in the history
Credit to: @Matrix324
  • Loading branch information
TomDotBat authored Feb 6, 2021
1 parent 6d0e143 commit b4bfc0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cl_ui3d2d.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ do --Rendering context creation and mouse position getters
local normal = angles:Up()
local dot = eyePosToUi:Dot(normal)

if dot >= 0 then return end
if dot >= 0 then return true end
end

isRendering = true
Expand Down Expand Up @@ -138,4 +138,4 @@ do --Rendering context creation and mouse position getters
end
end

hook.Run("ui3d2d.fullyLoaded")
hook.Run("ui3d2d.fullyLoaded")

0 comments on commit b4bfc0c

Please sign in to comment.