fix EGP Emitter calling draw with nil (#3209)

This commit is contained in:
Denneisk 2024-12-07 19:46:01 +00:00 committed by GitHub
parent fbe1bed5ba
commit 530fcfcb0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,11 +121,11 @@ if CLIENT then
if filter then
render.PushFilterMag(filter)
render.PushFilterMin(filter)
obj:Draw(ent, mat)
obj:Draw(self, mat)
render.PopFilterMag()
render.PopFilterMin()
else
obj:Draw(ent, mat)
obj:Draw(self, mat)
end
EGP:FixMaterial(oldtex)
end