Skip to content

Commit

Permalink
Fix toScreen not working when viewmatrix is pushed (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZH-Hristov authored Aug 11, 2023
1 parent 40ff4a1 commit eb78558
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/starfall/libs_cl/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,9 @@ function render_library.popViewMatrix()

cam[view_matrix_stack[i]]()
view_matrix_stack[i] = nil

cam.Start3D()
cam.End3D() -- This fixes Vector:toScreen() breaking if you've pushed a viewmatrix beforehand. Yeah, it's stupid.
end

--- Sets background color of screen
Expand Down

0 comments on commit eb78558

Please sign in to comment.