mirror of
https://github.com/StyledStrike/gmod-custom-loadout.git
synced 2025-03-04 03:03:09 -05:00
Catch icon render errors to prevent overflow
This commit is contained in:
parent
6e00415d65
commit
fc10e87858
@ -769,7 +769,17 @@ do
|
||||
render.PushFilterMag( TEXFILTER.ANISOTROPIC )
|
||||
render.PushFilterMin( TEXFILTER.ANISOTROPIC )
|
||||
|
||||
self.Image:PaintAt( self.Border, self.Border, w - self.Border * 2, h - self.Border * 2 )
|
||||
local ok, err = xpcall(
|
||||
self.Image.PaintAt,
|
||||
debug.traceback,
|
||||
self.Image,
|
||||
self.Border,
|
||||
self.Border,
|
||||
w - self.Border * 2,
|
||||
h - self.Border * 2
|
||||
)
|
||||
|
||||
if not ok then print( err ) end
|
||||
|
||||
render.PopFilterMin()
|
||||
render.PopFilterMag()
|
||||
|
Loading…
Reference in New Issue
Block a user