--@client
local HUDRT = render.createRenderTarget("HUDRT")
local w, h = render.getResolution()
local clr = Color(255, 0, 0)
local clearclr = Color(0, 0, 0, 0)
enableHud(player(), true)
hook.add("drawhud", "HUD", function()
render.selectRenderTarget("HUDRT")
render.clear(clearclr)
render.setColor(clr)
render.drawRect(1024 * 0.5 - 25, 0, 50, 1024) -- this should reach the bottom of the screen
render.selectRenderTarget()
render.setRenderTargetTexture("HUDRT")
render.drawTexturedRect(w * 0.5 - (h * 0.5), 0, h, h)
end)
Creates a centered RT and tries to draw a red rectangle from the top to the bottom of the screen.
For example: The rectangle will be properly fully drawn at 1080p, but will be cut off about 3/4 of the way down at 720p.


This could be a GMod issue for all I know, so its place might not be here.