dont finalize gpu on fullupdate (#3272)

This commit is contained in:
StrawWagen 2025-02-26 15:11:20 -07:00 committed by GitHub
parent 3c4b5fddc2
commit 6c128bf0f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,9 +132,10 @@ if CLIENT then
WireLib.netRegister(self)
end
function ENT:OnRemove()
self.GPU:Finalize()
function ENT:OnRemove( fullUpdate )
self.NeedRefresh = true
if fullUpdate then return end
self.GPU:Finalize()
end
function ENT:Draw()
self:DrawModel()